Interface for customizing dashboards based on parallel edges

ABSTRACT

An interface for customizing dashboards based on parallel edges includes functionality for detecting an edge dragging event of a selected edge in a dashboard, the edge dragging event including dragging the selected edge along an axis perpendicular to the edge, and identifying a parallel edge to the selected edge, the parallel edge within a threshold distance to the selected edge along the axis. The interface further includes functionality for setting the edge dragging event to make the selected edge be collinear with the parallel edge based on the parallel edge being within the threshold distance to the selected edge, and stopping the edge dragging event at a stop location to generate an updated dashboard. The interface further includes functionality for presenting the updated dashboard.

CROSS REFERENCE TO RELATED APPLICATIONS

The present application is a continuation of, and therefore claimsbenefit to, U.S. patent application Ser. No. 17/086,093, filed on Oct.30, 2020, entitled “Customization Tools for Dashboards.” U.S. patentapplication Ser. No. 17/086,093 is a non-provisional application of, andtherefore, claims benefit under 35 U.S.C. § 119(e) to U.S. PatentApplication Ser. No. 63/093,056, filed on Oct. 16, 2020, entitled,“Customization Tool for Dashboards.” U.S. patent application Ser. No.17/086,093 and U.S. Patent Application Ser. No. 63/093,056 areincorporated herein by reference in their entirety.

BACKGROUND

Computer systems pervade almost every aspect of business and technology.One of the abilities of computer systems is to quickly analyze largevolumes of data and present, in a user interface, the data. A goal ofthe user interface is to accurately present important data in a mannerthat a user viewing the interface can easily understand the informationpresented. One method of presenting information is in the form of adashboard. A dashboard is a collection of visualizations and menuoptions that allows end users to understand a set of performancemetrics. Dashboards may present data that is regularly updated. Thus,with a useful dashboard, users can identify trends and gain insightsinto systems being monitored.

BRIEF DESCRIPTION OF DRAWINGS

The present disclosure is illustrated by way of example, and notlimitation, in the figures of the accompanying drawings, in which likereference numerals indicate similar elements and in which:

FIG. 1 is a block diagram of an example networked computer environment,in accordance with example embodiments;

FIG. 2 is a block diagram of an example data intake and query system, inaccordance with example embodiments;

FIG. 3 is a block diagram of an example cloud-based data intake andquery system, in accordance with example embodiments;

FIG. 4 is a block diagram of an example data intake and query systemthat performs searches across external data systems, in accordance withexample embodiments;

FIG. 5A is a flowchart of an example method that illustrates howindexers process, index, and store data received from forwarders, inaccordance with example embodiments;

FIG. 5B is a block diagram of a data structure in which time-stampedevent data can be stored in a data store, in accordance with exampleembodiments;

FIG. 5C provides a visual representation of the manner in which apipelined search language or query operates, in accordance with exampleembodiments;

FIG. 6A is a flowchart of an example method that illustrates how asearch head and indexers perform a search query, in accordance withexample embodiments;

FIG. 6B provides a visual representation of an example manner in which apipelined command language or query operates, in accordance with exampleembodiments;

FIG. 7A is a diagram of an example scenario where a common customeridentifier is found among log data received from three disparate datasources, in accordance with example embodiments;

FIG. 7B illustrates an example of processing keyword searches and fieldsearches, in accordance with disclosed embodiments;

FIG. 7C illustrates an example of creating and using an inverted index,in accordance with example embodiments;

FIG. 7D depicts a flowchart of example use of an inverted index in apipelined search query, in accordance with example embodiments;

FIG. 8A is an interface diagram of an example user interface for asearch screen, in accordance with example embodiments;

FIG. 8B is an interface diagram of an example user interface for a datasummary dialog that enables a user to select various data sources, inaccordance with example embodiments;

FIGS. 9 and 10 are interface diagrams of example report generation userinterfaces, in accordance with example embodiments;

FIG. 11 is an example search query received from a client and executedby search peers, in accordance with example embodiments;

FIG. 12A is an interface diagram of an example user interface of a keyindicators view, in accordance with example embodiments;

FIG. 12B is an interface diagram of an example user interface of anincident review dashboard, in accordance with example embodiments;

FIG. 12C is a tree diagram of an example a proactive monitoring tree, inaccordance with example embodiments;

FIG. 12D is an interface diagram of an example a user interfacedisplaying both log data and performance data, in accordance withexample embodiments;

FIG. 13 is a block diagram of an example data intake and query systemwith a dashboard editor in accordance with example embodiments;

FIG. 14A depicts an example schematic diagram of a dashboard, inaccordance with example embodiments;

FIG. 14B depicts an example schematic diagram of a cell partitioned intoquadrants, in accordance with example embodiments;

FIG. 14C depicts an example schematic diagram of a cell with droplocations, in accordance with example embodiments;

FIG. 15 depicts a flowchart for updating a dashboard, in accordance withexample embodiments;

FIG. 16 depicts a flowchart for updating a dashboard based on drop zonelocation, in accordance with example embodiments;

FIG. 17 depicts a flowchart for updating adjacent visualization based onmovement of a selected visualization, in accordance with exampleembodiments;

FIG. 18 depicts a flowchart for responding to an edge dragging event, inaccordance with example embodiments;

FIG. 19 depicts a flowchart for loading a dashboard, in accordance withexample embodiments;

FIG. 20 depicts a flowchart for adding a border to a loaded dashboard,in accordance with example embodiments;

FIG. 21A depicts an example editor interface for moving a visualization,in accordance with example embodiments;

FIG. 21B depicts an example editor interface showing a movedvisualization, in accordance with example embodiments;

FIG. 22A depicts an example editor interface showing an initial locationof a set of visualizations, in accordance with example embodiments;

FIG. 22B depicts an example editor interface with a preview view, inaccordance with example embodiments;

FIG. 22C depicts an example editor interface with a moved visualizationfrom the initial location, in accordance with example embodiments;

FIG. 23A depicts an example of a changing visualization type, inaccordance with example embodiments; and

FIG. 23B depicts an example of an interface to change visualizationtype, in accordance with example embodiments.

DETAILED DESCRIPTION

Specific embodiments of the invention will now be described in detailwith reference to the accompanying figures. Like elements in the variousfigures are denoted by like reference numerals for consistency.

In the following detailed description of embodiments of the invention,numerous specific details are set forth in order to provide a morethorough understanding of the invention. However, it will be apparent toone of ordinary skill in the art that the invention may be practicedwithout these specific details. In other instances, well-known featureshave not been described in detail to avoid unnecessarily complicatingthe description.

Throughout the application, ordinal numbers (e.g., first, second, third,etc.) may be used as an adjective for an element (i.e., any noun in theapplication). The use of ordinal numbers is not to imply or create anyparticular ordering of the elements nor to limit any element to beingonly a single element unless expressly disclosed, such as by the use ofthe terms “before”, “after”, “single”, and other such terminology.Rather, the use of ordinal numbers is to distinguish between theelements. By way of an example, a first element is distinct from asecond element, and the first element may encompass more than oneelement and succeed (or precede) the second element in an ordering ofelements.

Further, although the description includes a discussion of variousembodiments, the various disclosed embodiments may be combined invirtually any manner. All combinations are contemplated herein.

One or more embodiments are directed to an editor interface for editinga dashboard. The editor interface is configured to automatically changesizing and location of visualizations within a dashboard based on userinput. In one or more embodiments, the user input is performed viadragging and dropping events within the editor interface. In response toa user selecting a drop zone location, the editor interfaceautomatically resizes at least one neighboring visualization to makeroom for the selected visualization. One or more embodiments may furtherinclude interfaces for modifying individual visualizations.

Embodiments are described herein according to the following outline:

-   -   1.0. General Overview    -   2.0. Operating Environment        -   2.1. Host Devices        -   2.2. Client Devices        -   2.3. Client Device Applications        -   2.4. Data Server System        -   2.5. Cloud-Based System Overview            -   2.5.1 Containerized, Stateless Cloud-Based System                Overview        -   2.6. Searching Externally-Archived Data            -   2.6.1. ERP Process Features        -   2.7. Data Ingestion            -   2.7.1. Input            -   2.7.2. Components And Protocols For Receiving Data            -   2.7.3. Parsing            -   2.7.4. Indexing        -   2.8. Query Processing        -   2.9. Pipelined Search Language        -   2.10. Field Extraction        -   2.11. Example Search Screen        -   2.12. Data Models        -   2.13. Acceleration Technique            -   2.13.1. Aggregation Technique            -   2.13.2. Keyword Index            -   2.13.3. High Performance Analytics Store                -   2.13.3.1. Extracting Event Data Using Posting            -   2.13.4. Accelerating Report Generation        -   2.14. Security Features        -   2.15. Data Center Monitoring        -   2.16. IT Service Monitoring    -   3.0. Customization Tool for Dashboards    -   4.0. Terminology

1.0. General Overview

Modern data centers and other computing environments can compriseanywhere from a few host computer systems to thousands of systemsconfigured to process data, service requests from remote clients, andperform numerous other computational tasks. During operation, variouscomponents within these computing environments often generatesignificant volumes of machine data. Machine data is any data producedby a machine or component in an information technology (IT) environmentand that reflects activity in the IT environment. For example, machinedata can be raw machine data that is generated by various components inIT environments, such as servers, sensors, routers, mobile devices,Internet of Things (IoT) devices, etc. Machine data can include systemlogs, network packet data, sensor data, application program data, errorlogs, stack traces, system performance data, etc. In general, machinedata can also include performance data, diagnostic information, and manyother types of data that can be analyzed to diagnose performanceproblems, monitor user interactions, and to derive other insights.

A number of tools are available to analyze machine data. In order toreduce the size of the potentially vast amount of machine data that maybe generated, many of these tools typically pre-process the data basedon anticipated data-analysis needs. For example, pre-specified dataitems may be extracted from the machine data and stored in a database tofacilitate efficient retrieval and analysis of those data items atsearch time. However, the rest of the machine data typically is notsaved and is discarded during pre-processing. As storage capacitybecomes progressively cheaper and more plentiful, there are fewerincentives to discard these portions of machine data and many reasons toretain more of the data.

This plentiful storage capacity is presently making it feasible to storemassive quantities of minimally processed machine data for laterretrieval and analysis. In general, storing minimally processed machinedata and performing analysis operations at search time can providegreater flexibility because it enables an analyst to search all of themachine data, instead of searching only a pre-specified set of dataitems. This may enable an analyst to investigate different aspects ofthe machine data that previously were unavailable for analysis.

However, analyzing and searching massive quantities of machine datapresents a number of challenges. For example, a data center, servers, ornetwork appliances may generate many different types and formats ofmachine data (e.g., system logs, network packet data (e.g., wire data,etc.), sensor data, application program data, error logs, stack traces,system performance data, operating system data, virtualization data,etc.) from thousands of different components, which can collectively bevery time-consuming to analyze. In another example, mobile devices maygenerate large amounts of information relating to data accesses,application performance, operating system performance, networkperformance, etc. There can be millions of mobile devices that reportthese types of information.

These challenges can be addressed by using an event-based data intakeand query system, such as the SPLUNK® ENTERPRISE system developed bySplunk Inc. of San Francisco, Calif. The SPLUNK® ENTERPRISE system isthe leading platform for providing real-time operational intelligencethat enables organizations to collect, index, and search machine datafrom various websites, applications, servers, networks, and mobiledevices that power their businesses. The data intake and query system isparticularly useful for analyzing data which is commonly found in systemlog files, network data, and other data input sources. Although many ofthe techniques described herein are explained with reference to a dataintake and query system similar to the SPLUNK® ENTERPRISE system, thesetechniques are also applicable to other types of data systems.

In the data intake and query system, machine data is collected andstored as “events”. An event comprises a portion of machine data and isassociated with a specific point in time. The portion of machine datamay reflect activity in an information technology (IT) environment andmay be produced by a component of that IT environment, where the eventsmay be searched to provide insight into the IT environment, therebyimproving the performance of components in the IT environment. Eventsmay be derived from “time series data,” where the time series datacomprises a sequence of data points (e.g., performance measurements froma computer system, etc.) that are associated with successive points intime. In general, each event has a portion of machine data that isassociated with a timestamp that is derived from the portion of machinedata in the event. A timestamp of an event may be determined throughinterpolation between temporally proximate events having knowntimestamps or may be determined based on other configurable rules forassociating timestamps with events.

In some instances, machine data can have a predefined format, where dataitems with specific data formats are stored at predefined locations inthe data. For example, the machine data may include data associated withfields in a database table. In other instances, machine data may nothave a predefined format (e.g., may not be at fixed, predefinedlocations), but may have repeatable (e.g., non-random) patterns. Thismeans that some machine data can comprise various data items ofdifferent data types that may be stored at different locations withinthe data. For example, when the data source is an operating system log,an event can include one or more lines from the operating system logcontaining machine data that includes different types of performance anddiagnostic information associated with a specific point in time (e.g., atimestamp).

Examples of components which may generate machine data from which eventscan be derived include, but are not limited to, web servers, applicationservers, databases, firewalls, routers, operating systems, and softwareapplications that execute on computer systems, mobile devices, sensors,IoT devices, etc. The machine data generated by such data sources caninclude, for example and without limitation, server log files, activitylog files, configuration files, messages, network packet data,performance measurements, sensor measurements, etc.

The data intake and query system uses a flexible schema to specify howto extract information from events. A flexible schema may be developedand redefined as needed. Note that a flexible schema may be applied toevents “on the fly,” when it is needed (e.g., at search time, indextime, ingestion time, etc.). When the flexible schema is not applied toevents until search time, the flexible schema may be referred to as a“late-binding schema.”

During operation, the data intake and query system receives machine datafrom any type and number of sources (e.g., one or more system logs,streams of network packet data, sensor data, application program data,error logs, stack traces, system performance data, etc.). The dataintake and query system parses the machine data to produce events eachhaving a portion of machine data associated with a timestamp. The dataintake and query system stores the events in a data store. The dataintake and query system enables users to run queries against the storedevents to, for example, retrieve events that meet criteria specified ina query, such as criteria indicating certain keywords or having specificvalues in defined fields. As used herein, the term “field” refers to alocation in the machine data of an event containing one or more valuesfor a specific data item. A field may be referenced by a field nameassociated with the field. As will be described in more detail herein, afield is defined by an extraction rule (e.g., a regular expression) thatderives one or more values or a sub-portion of text from the portion ofmachine data in each event to produce a value for the field for thatevent. The set of values produced are semantically-related (such as IPaddress), even though the machine data in each event may be in differentformats (e.g., semantically-related values may be in different positionsin the events derived from different sources).

As described above, the data intake and query system stores the eventsin a data store. The events stored in the data store arefield-searchable, where field-searchable herein refers to the ability tosearch the machine data (e.g., the raw machine data) of an event basedon a field specified in search criteria. For example, a search havingcriteria that specifies a field name “UserID” may cause the data intakeand query system to field-search the machine data of events to identifyevents that have the field name “UserID.” In another example, a searchhaving criteria that specifies a field name “UserID” with acorresponding field value “12345” may cause the data intake and querysystem to field-search the machine data of events to identify eventshaving that field-value pair (e.g., field name “UserID” with acorresponding field value of “12345”). Events are field-searchable usingone or more configuration files associated with the events. Eachconfiguration file includes one or more field names, where each fieldname is associated with a corresponding extraction rule and a set ofevents to which that extraction rule applies. The set of events to whichan extraction rule applies may be identified by metadata associated withthe set of events. For example, an extraction rule may apply to a set ofevents that are each associated with a particular host, a source, or asource type. When events are to be searched based on a particular fieldname specified in a search, the data intake and query system uses one ormore configuration files to determine whether there is an extractionrule for that particular field name that applies to each event thatfalls within the criteria of the search. If so, the event is consideredas part of the search results (and additional processing may beperformed on that event based on criteria specified in the search). Ifnot, the next event is similarly analyzed, and so on.

As noted above, the data intake and query system utilizes a late-bindingschema while performing queries on events. One aspect of a late-bindingschema is applying extraction rules to events to extract values forspecific fields during search time. More specifically, the extractionrule for a field can include one or more instructions that specify howto extract a value for the field from an event. An extraction rule cangenerally include any type of instruction for extracting values fromevents. In some cases, an extraction rule comprises a regularexpression, where a sequence of characters forms a search pattern. Anextraction rule comprising a regular expression is referred to herein asa regex rule. The data intake and query system applies a regex rule toan event to extract values for a field associated with the regex rule,where the values are extracted by searching the event for the sequenceof characters defined in the regex rule.

In the data intake and query system, a field extractor may be configuredto automatically generate extraction rules for certain fields in theevents when the events are being created, indexed, or stored, orpossibly at a later time. Alternatively, a user may manually defineextraction rules for fields using a variety of techniques. In contrastto a conventional schema for a database system, a late-binding schema isnot defined at data ingestion time. Instead, the late-binding schema canbe developed on an ongoing basis until the time a query is actuallyexecuted. This means that extraction rules for the fields specified in aquery may be provided in the query itself or may be located duringexecution of the query. Hence, as a user learns more about the data inthe events, the user can continue to refine the late-binding schema byadding new fields, deleting fields, or modifying the field extractionrules for use the next time the late-binding schema is used by the dataintake and query system. Because the data intake and query systemmaintains the underlying machine data and uses a late-binding schema forsearching the machine data, it enables a user to continue investigatingand learn valuable insights about the machine data.

In some embodiments, a common field name may be used to reference two ormore fields containing equivalent and/or similar data items, even thoughthe fields may be associated with different types of events thatpossibly have different data formats and different extraction rules. Byenabling a common field name to be used to identify equivalent and/orsimilar fields from different types of events generated by disparatedata sources, the data intake and query system facilitates use of a“common information model” (CIM) across the disparate data sources(further discussed with respect to FIG. 7A).

2.0. Operating Environment

FIG. 1 is a block diagram of an example networked computer environment(100), in accordance with example embodiments. Those skilled in the artwould understand that FIG. 1 represents one example of a networkedcomputer system and other embodiments may use different arrangements.

The example networked computer system 100 comprises one or morecomputing devices. These one or more computing devices comprise anycombination of hardware and software configured to implement the variouslogical components described herein. For example, the one or morecomputing devices may include one or more memories that storeinstructions for implementing the various components described herein,one or more hardware processors configured to execute the instructionsstored in the one or more memories, and various data repositories in theone or more memories for storing data structures utilized andmanipulated by the various components.

In some embodiments, one or more client devices 102 are coupled to oneor more host devices 106 and a data intake and query system 108 via oneor more networks 104. Networks 104 broadly represent one or more LocalArea Networks (LANs), Wide Area Networks (WANs), cellular networks(e.g., Long-Term Evolution (LTE), High Speed Packet Access (HSPA), 3G,and other cellular technologies), and/or networks using any of wired,wireless, terrestrial microwave, or satellite links, and may include thepublic Internet.

2.1. Host Devices

In the illustrated embodiment, a networked computer system 100 includesone or more host devices 106. Host devices 106 may broadly include anynumber of computers, virtual machine instances, and/or data centers thatare configured to host or execute one or more instances of hostapplications 114. In general, a host device 106 may be involved,directly or indirectly, in processing requests received from clientdevices 102. Each host device 106 may comprise, for example, one or moreof a network device, a web server, an application server, a databaseserver, etc. A collection of host devices 106 may be configured toimplement a network-based service. For example, a provider of anetwork-based service may configure one or more host devices 106 andhost applications 114 (e.g., one or more web servers, applicationservers, database servers, etc.) to collectively implement thenetwork-based application.

In general, client devices 102 communicate with one or more hostapplications 114 to exchange information. The communication between aclient device 102 and a host application 114 may, for example, be basedon the Hypertext Transfer Protocol (HTTP) or any other network protocol.Content delivered from the host application 114 to a client device 102may include, for example, Hyper Text Markup Language (HTML) documents,media content, etc. The communication between a client device 102 and ahost application 114 may include sending various requests and receivingdata packets. For example, in general, a client device 102 or anapplication running on a client device may initiate communication with ahost application 114 by making a request for a specific resource (e.g.,based on an HTTP request), and the application server may respond withthe requested content stored in one or more response packets.

In the illustrated embodiment, one or more instances of hostapplications 114 may generate various types of performance data duringoperation, including event logs, network data, sensor data, and othertypes of machine data. For example, a host application 114 comprising aweb server may generate one or more web server logs in which details ofinteractions between the web server and any number of client devices 102is recorded. As another example, a host device 106 comprising a routermay generate one or more router logs that record information related tonetwork traffic managed by the router. As yet another example, a hostapplication 114 comprising a database server may generate one or morelogs that record information related to requests sent from other hostapplications 114 (e.g., web servers or application servers) for datamanaged by the database server.

2.2. Client Devices

Client devices 102 of FIG. 1 represent any computing device capable ofinteracting with one or more host devices 106 via a network 104.Examples of client devices 102 may include, without limitation, smartphones, tablet computers, handheld computers, wearable devices, laptopcomputers, desktop computers, servers, portable media players, gamingdevices, and so forth. In general, a client device 102 can provideaccess to different content, for instance, content provided by one ormore host devices 106, etc. Each client device 102 may comprise one ormore client applications 110, described in more detail in a separatesection hereinafter.

2.3. Client Device Applications

In some embodiments, each client device 102 may host or execute one ormore client applications 110 that are capable of interacting with one ormore host devices 106 via one or more networks 104. For instance, aclient application 110 may be or comprise a web browser that a user mayuse to navigate to one or more websites or other resources provided byone or more host devices 106. As another example, a client application110 may comprise a mobile application or “app.” For example, an operatorof a network-based service hosted by one or more host devices 106 maymake available one or more mobile apps that enable users of clientdevices 102 to access various resources of the network-based service. Asyet another example, client applications 110 may include backgroundprocesses that perform various operations without direct interactionfrom a user. A client application 110 may include a “plug-in” or an“extension” to another application, such as a web browser plug-in orextension.

In some embodiments, a client application 110 may include a monitoringcomponent 112. At a high level, the monitoring component 112 comprises asoftware component or other logic that facilitates generatingperformance data related to a client device's operating state, includingmonitoring network traffic sent and received from the client device 102and collecting other device and/or application-specific information.Monitoring component 112 may be an integrated component of a clientapplication 110, a plug-in, an extension, or any other type of add-oncomponent. Monitoring component 112 may also be a stand-alone process.

In some embodiments, a monitoring component 112 may be created when aclient application 110 is developed, for example, by an applicationdeveloper using a software development kit (SDK). The SDK may includecustom monitoring code that can be incorporated into the codeimplementing a client application 110. When the code is converted to anexecutable application, the custom code implementing the monitoringfunctionality can become part of the application itself.

In some embodiments, an SDK or other code for implementing themonitoring functionality may be offered by a provider of a data intakeand query system, such as a data intake and query system 108. In suchcases, the provider of the system 108 can implement the custom code sothat performance data generated by the monitoring functionality is sentto the system 108 to facilitate analysis of the performance data by adeveloper of the client application or other users.

In some embodiments, the custom monitoring code may be incorporated intothe code of a client application 110 in a number of different ways, suchas the insertion of one or more lines in the client application codethat calls or otherwise invokes the monitoring component 112. As such, adeveloper of a client application 110 can add one or more lines of codeinto the client application 110 to trigger the monitoring component 112at desired points during execution of the application. Code thattriggers the monitoring component 112 may be referred to as a monitortrigger. For instance, a monitor trigger may be included at or near thebeginning of the executable code of the client application 110 such thatthe monitoring component 112 is initiated or triggered as theapplication is launched, or included at other points in the code thatcorrespond to various actions of the client application 110, such assending a network request or displaying a particular interface.

In some embodiments, the monitoring component 112 may monitor one ormore aspects of network traffic sent and/or received by a clientapplication 110. For example, the monitoring component 112 may beconfigured to monitor data packets transmitted to and/or from one ormore host applications 114. Incoming and/or outgoing data packets can beread or examined to identify network data contained within the packets,for example, and other aspects of data packets can be analyzed todetermine a number of network performance statistics. Monitoring networktraffic may enable information to be gathered particular to the networkperformance associated with a client application 110 or set ofapplications.

In some embodiments, network performance data refers to any type of datathat indicates information about the network 104 and/or networkperformance. Network performance data may include, for instance, auniform resource locator (URL) requested, a connection type (e.g., HTTP,Hypertext Transfer Protocol Secure (HTTPS), etc.), a connection starttime, a connection end time, an HTTP status code, a request length, aresponse length, request headers, response headers, a connection status(e.g., completion, response time(s), failure, etc.), and the like. Uponobtaining network performance data indicating performance of the network104, the network performance data can be transmitted to a data intakeand query system 108 for analysis.

Upon developing a client application 110 that incorporates a monitoringcomponent 112, the client application 110 can be distributed to clientdevices 102. Applications generally can be distributed to client devices102 in any manner, or they can be pre-loaded. In some cases, theapplication may be distributed to a client device 102 via an applicationmarketplace or other application distribution system. For instance, anapplication marketplace or other application distribution system mightdistribute the application to a client device 102 based on a requestfrom the client device 102 to download the application.

Examples of functionality that enables monitoring performance of aclient device 102 are described in U.S. patent application Ser. No.14/524,748, entitled “UTILIZING PACKET HEADERS TO MONITOR NETWORKTRAFFIC IN ASSOCIATION WITH A CLIENT DEVICE”, filed on 27 Oct. 2014, andwhich is hereby incorporated by reference in its entirety for allpurposes.

In some embodiments, the monitoring component 112 may also monitor andcollect performance data related to one or more aspects of theoperational state of a client application 110 and/or client device 102.For example, a monitoring component 112 may be configured to collectdevice performance information by monitoring one or more client deviceoperations, or by making calls to an operating system and/or one or moreother applications executing on a client device 102 for performanceinformation. Device performance information may include, for instance, acurrent wireless signal strength of the device, a current connectiontype and a network carrier, current memory performance information, ageographic location of the device, a device orientation, and any otherinformation related to the operational state of the client device 102.

In some embodiments, the monitoring component 112 may also monitor andcollect other device profile information including, for example, a typeof client device 102, a manufacturer and model of the device, versionsof various software applications installed on the device, and so forth.

In general, a monitoring component 112 may be configured to generateperformance data in response to a monitor trigger in the code of aclient application 110 or other triggering application event, asdescribed above, and to store the performance data in one or more datarecords. Each data record, for example, may include a collection offield-value pairs, each field-value pair storing a particular item ofperformance data in association with a field for the item. For example,a data record generated by a monitoring component 112 may include a“networkLatency” field (not shown in the Figure) in which a value isstored. This field indicates a network latency measurement associatedwith one or more network requests. The data record may include a “state”field to store a value indicating a state of a network connection, andso forth for any number of aspects of collected performance data.

2.4. Data Server System

FIG. 2 is a block diagram of an example data intake and query system108, in accordance with example embodiments. Data intake and querysystem 108 includes one or more forwarders 204 that receive data from avariety of data sources 202, and one or more indexers 206 that processand store the data in one or more data stores 208. These forwarders 204and indexers 206 can comprise separate computer systems or mayalternatively comprise separate processes executing on one or morecomputer systems.

Each data source 202 broadly represents a distinct source of data thatcan be consumed by data intake and query system 108. Examples of a datasources 202 include, without limitation, data files, directories offiles, data sent over a network, event logs, registries, etc.

During operation, the forwarders 204 identify which indexers 206 receivedata collected from a data source 202 and forward the data to theappropriate indexers 206. Forwarders 204 can also perform operations onthe data before forwarding, including removing extraneous data,detecting timestamps in the data, the parsing data, the indexing data,the routing data based on criteria relating to the data being routed,and/or performing other data transformations.

In some embodiments, a forwarder 204 may comprise a service accessibleto client devices 102 and host devices 106 via a network 104. Forexample, one type of forwarder 204 may be capable of consuming vastamounts of real-time data from a potentially large number of clientdevices 102 and/or host devices 106. The forwarder 204 may, for example,comprise a computing device which implements multiple data pipelines or“queues” to handle forwarding of network data to indexers 206. Aforwarder 204 may also perform many of the functions that are performedby an indexer 206. For example, a forwarder 204 may perform keywordextractions on raw data or parse raw data to create events. A forwarder204 may generate timestamps for events. Additionally, or alternatively,a forwarder 204 may perform routing of events to indexers 206. Datastore 208 may contain events derived from machine data from a variety ofsources all pertaining to the same component in an IT environment, andthis data may be produced by the machine in question or by othercomponents in the IT environment.

2.5. Cloud-Based System Overview

The example data intake and query system 108 described in reference toFIG. 2 comprises several system components, including one or moreforwarders 204, indexers 206, and search heads 210. In someenvironments, a user of a data intake and query system 108 may installand configure, on computing devices owned and operated by the user, oneor more software applications that implement some or all of these systemcomponents. For example, a user may install a software application onserver computers owned by the user and configure each server to operateas one or more of a forwarder 204, an indexer 206, a search head 210,etc. This arrangement generally may be referred to as an “on-premises”solution. That is, the data intake and query system 108 is installed andoperates on computing devices directly controlled by the user of thedata intake and query system 108. Some users may prefer an on-premisessolution because it may provide a greater level of control over theconfiguration of certain aspects of the system (e.g., security, privacy,standards, controls, etc.). However, other users may instead prefer anarrangement in which the user is not directly responsible for providingand managing the computing devices upon which various components of dataintake and query system 108 operate.

In one embodiment, to provide an alternative to an entirely on-premisesenvironment for the data intake and query system 108, one or more of thecomponents of a data intake and query system 108 instead may be providedas a cloud-based service. In this context, a cloud-based service refersto a service hosted by one more computing resources that are accessibleto end users over a network, for example, by using a web browser orother application on a client device to interface with the remotecomputing resources. For example, a service provider may provide acloud-based data intake and query system by managing computing resourcesconfigured to implement various aspects of the data intake and querysystem 108 (e.g., forwarders 204, indexers 206, search heads 210, etc.)and by providing access to the data intake and query system 108 to endusers via a network. Typically, a user may pay a subscription or otherfee to use such a service. Each subscribing user of the cloud-basedservice may be provided with an account that enables the user toconfigure a customized cloud-based system based on the user'spreferences.

FIG. 3 illustrates a block diagram of an example cloud-based data intakeand query system 306. Similar to the system of FIG. 2 , the networkedcomputer system 300 includes data sources 202 and forwarders 204. Thesedata sources 202 and forwarders 204 may be in a subscriber's privatecomputing environment. Alternatively, they might be directly managed bythe service provider as part of the cloud service. In the examplenetworked computer system 300, one or more forwarders 204 and clients302 are coupled to a cloud-based data intake and query system 306 viaone or more networks 304. Network 304 broadly represents one or moreLANs, WANs, cellular networks, intranetworks, internetworks, etc., usingany of wired, wireless, terrestrial microwave, satellite links, etc.,and may include the public Internet, and is used by client devices 302and forwarders 204 to access the cloud-based data intake and querysystem 306. Similar to the system of FIG. 2 , each of the forwarders 204may be configured to receive data from an input source and to forwardthe data to other components of the cloud-based data intake and querysystem 306 for further processing.

In some embodiments, a cloud-based data intake and query system 306 maycomprise a plurality of system instances 308. In general, each systeminstance 308 may include one or more computing resources managed by aprovider of the cloud-based data intake and query system 306 madeavailable to a particular subscriber. The computing resources comprisinga system instance 308 may, for example, include one or more servers orother devices configured to implement one or more forwarders 204,indexers, search heads, and other components of a data intake and querysystem, similar to data intake and query system 108. As indicated above,a subscriber may use a web browser or other application of a clientdevice 302 to access a web portal or other interface that enables thesubscriber to configure a system instance 308.

Providing a data intake and query system as described in reference todata intake and query system 108 as a cloud-based service presents anumber of challenges. Each of the components of a system 108 (e.g.,forwarders, indexers, and search heads) may at times refer to variousconfiguration files stored locally at each component. Theseconfiguration files typically may involve some level of userconfiguration to accommodate particular types of data a user desires toanalyze and to account for other user preferences. However, in acloud-based service context, users typically may not have direct accessto the underlying computing resources implementing the various systemcomponents (e.g., the computing resources comprising each systeminstance 308) and may desire to make such configurations indirectly, forexample, using one or more web-based interfaces. Thus, the techniquesand systems described herein for providing user interfaces that enable auser to configure source type definitions are applicable to bothon-premises and cloud-based service contexts, or some combinationthereof (e.g., a hybrid system where both an on-premises environment,such as SPLUNK® ENTERPRISE, and a cloud-based environment, such asSPLUNK® CLOUD, are centrally visible).

2.5.1 Containerized, Stateless Cloud-Based System Overview

As shown in the previous figures, various embodiments may refer to adata intake and query system 108 that includes one or more of a searchhead 210, an indexer 206, and a forwarder 204. In other implementations,data intake and query system 108 may be implemented in a cloud-basedsystem, such as cloud-based data intake and query system 306, as shownin FIG. 3 . In some implementations, the cloud-based data intake andquery system 306 have a different architecture but may carry outindexing and searching in a way that is similar to and in some waysfunctionally equivalent from the perspective of the end user. Forexample, cloud-based data intake and query system 306 may bere-architected to run in a stateless, containerized environment. In someof these embodiments, cloud-based data intake and query system 306 maybe run in a computing cloud provided by a third party or provided by theoperator of the cloud-based data intake and query system 306. This typeof cloud-based data intake and query system 306 may have severalbenefits, including, but not limited to, lossless data ingestion, morerobust disaster recovery, and faster or more efficient processing,searching, and indexing. A cloud-based data intake and query system 306as described in this section may provide separately scalable storageresources and compute resources, or separately scalable search and indexresources. Additionally, the cloud-based data intake and query system306 may allow for applications to be developed on top of the data intakeand query system 108, to extend or enhance functionality, through agateway layer or one or more Application Programming Interfaces (APIs),which may provide customizable access control or targeted exposure tothe workings of the cloud-based data intake and query system 306.

In some embodiments, a cloud-based data intake and query system 306 mayinclude an intake system. Such an intake system can include, but is notlimited to, an intake buffer, such as Apache Kafka® or Amazon Kinesis®,or an extensible compute layer, such as Apache Spark™ or Apache Flink®.In some embodiments, the search function and the index function may beseparated or containerized, so that search functions and index functionsmay run or scale independently. In some embodiments, indexed data may bestored in buckets, which may be stored in a persistent storage oncecertain bucket requirements have been met and retrieved as needed forsearching. In some embodiments, the search functions and index functionsrun in stateless containers, which may be coordinated by anorchestration platform. These containerized search and index functionsmay retrieve data needed to carry out searching and indexing from thebuckets or various other services that may also run in containers, orwithin other components of the orchestration platform. In this manner,loss of a single container, or even multiple containers, does not resultin data loss, because the data can be quickly recovered from the variousservices or components or the buckets in which the data is persisted.

In some embodiments, the cloud-based data intake and query system 306may implement tenant-based and user-based access control. In someembodiments, the cloud-based data intake and query system 306 mayimplement an abstraction layer, through a gateway portal, an API, orsome combination thereof, to control or limit access to thefunctionality of the cloud-based data intake and query system 306. Insome embodiments, the cloud-based data intake and query system 306 maybe multi-tenant, so that containerized search and indexing may be doneacross multiple tenants.

2.6. Searching Externally-Archived Data

FIG. 4 shows a block diagram of an example of a data intake and querysystem 108 that provides transparent search facilities for data systemsthat are external to the data intake and query system 108. Suchfacilities are available in the Splunk® Analytics for Hadoop® systemprovided by Splunk Inc. of San Francisco, Calif. Splunk® Analytics forHadoop® represents an analytics platform that enables businesses and ITteams to rapidly explore, analyze, and visualize data in Hadoop® andNoSQL data stores.

The search head 210 of the data intake and query system 108 receivessearch requests from one or more client devices 404 over networkconnections 420. As discussed above, the data intake and query system108 may reside in an enterprise location, in the cloud, etc. FIG. 4illustrates that multiple client devices 404 a, 404 b . . . 404 n maycommunicate with the data intake and query system 108. The clientdevices 404 may communicate with the data intake and query system 108using a variety of connections. For example, one client device 404 a inFIG. 4 is illustrated as communicating over an Internet (Web) protocol,another client device 404 b is illustrated as communicating via acommand line interface, and another client device 404 n is illustratedas communicating via a software developer kit (SDK).

The search head 210 analyzes the received search request to identifyrequest parameters. If a search request received from one of the clientdevices 404 references an index maintained by the data intake and querysystem 108, then the search head 210 connects to one or more indexers206 of the data intake and query system 108 for the index referenced inthe request parameters. That is, if the request parameters of the searchrequest reference an index, then the search head 210 accesses the datain the index via the indexer 206. The data intake and query system 108may include one or more indexers 206, depending on system accessresources and requirements. As described further below, the indexers 206retrieve data from their respective local data stores 208 as specifiedin the search request. The indexers 206 and their respective data stores208 can comprise one or more storage devices and typically reside on thesame system, though they may be connected via a local network 420.

If the request parameters of the received search request reference anexternal data collection, which is not accessible to the indexers 206 orunder the management of the data intake and query system 108, then thesearch head 210 can access the external data collection through anExternal Result Provider (ERP) process 410, 412. An external datacollection may be referred to as a “virtual index” (plural, “virtualindices”). An ERP process 410, 412 provides an interface through whichthe search head 210 may access virtual indices.

Thus, a search reference to an index of the data intake and query system108 relates to a locally stored and managed data collection. Incontrast, a search reference to a virtual index relates to an externallystored and managed data collection, which the search head 210 may accessthrough one or more ERP processes 410, 412. FIG. 4 shows two ERPprocesses 410, 412 that connect to respective remote (external) virtualindices, which are indicated as a Hadoop or another system 414 (e.g.,Amazon S3, Amazon EMR, other Hadoop® Compatible File Systems (HCFS),etc.) and a relational database management system (RDBMS) 416. Othervirtual indices may include other file organizations and protocols, suchas Structured Query Language (SQL) and the like. The ellipses betweenthe ERP processes 410, 412 indicate optional additional ERP processes ofthe data intake and query system 108. An ERP process may be a computerprocess that is initiated or spawned by the search head 210 and isexecuted by the data intake and query system 108. Alternatively, oradditionally, an ERP process may be a process spawned by the search head210 on the same or different host system as the search head 210 resides.

The search head 210 may spawn a single ERP process in response tomultiple virtual indices referenced in a search request, or the searchhead 210 may spawn different ERP processes 410, 412 for differentvirtual indices. Generally, virtual indices that share common dataconfigurations or protocols may share ERP processes 410, 412. Forexample, all search query references to a Hadoop file system may beprocessed by the same ERP process, if the ERP process is suitablyconfigured. Likewise, all search query references to a SQL database maybe processed by the same ERP process. In addition, the search head 210may provide a common ERP process for common external data source types(e.g., a common vendor may utilize a common ERP process, even if thevendor includes different data storage system types, such as Hadoop andSQL). Common indexing schemes also may be handled by common ERPprocesses 410, 412, such as flat text files or Weblog files.

The search head 210 determines the number of ERP processes 410, 412 tobe initiated via the use of configuration parameters that are includedin a search request message. Generally, there is a one-to-manyrelationship between an external results provider “family” and ERPprocesses 410, 412. There is also a one-to-many relationship between anERP process and corresponding virtual indices that are referred to in asearch request. For example, using RDBMS 416, assume two independentinstances of such a system by one vendor, such as one RDBMS 416 forproduction and another RDBMS 416 used for development. In such asituation, it is likely preferable (but optional) to use two ERPprocesses 410, 412 to maintain the independent operation as betweenproduction and development data. Both of the ERP processes 410, 412,however, will belong to the same family, because the two RDBMS systemtypes are from the same vendor.

The ERP processes 410, 412 receive a search request from the search head210. The search head 210 may optimize the received search request forexecution at the respective external virtual index. Alternatively, theERP process may receive a search request as a result of analysisperformed by the search head 210 or by a different system process. TheERP processes 410, 412 can communicate with the search head 210 viaconventional input/output routines (e.g., standard in/standard out,etc.). In this way, the ERP process receives the search request from aclient device such that the search request may be efficiently executedat the corresponding external virtual index.

The ERP processes 410, 412 may be implemented as a process of the dataintake and query system 108. Each ERP process 410, 412 may be providedby the data intake and query system 108 or may be provided by process orapplication providers who are independent of the data intake and querysystem 108. Each respective ERP process 410, 412 may include aninterface application installed at a computer of the external resultprovider that ensures proper communication between the search supportsystem and the external result provider. The ERP processes 410, 412generate appropriate search requests in the protocol and syntax of therespective virtual indices 414, 416, each of which corresponds to thesearch request received by the search head 210. Upon receiving searchresults from their corresponding virtual indices, the respective ERPprocess passes the result to the search head 210, which may return ordisplay the results, or a processed set of results based on the returnedresults to the respective client device.

Client devices 404 may communicate with the data intake and query system108 through a network 420, e.g., one or more LANs, WANs, cellularnetworks, intranetworks, and/or internetworks using any of wired,wireless, terrestrial microwave, satellite links, etc., and may includethe public Internet.

The analytics platform utilizing the External Result Provider processdescribed in more detail in U.S. Pat. No. 8,738,629, entitled “EXTERNALRESULT PROVIDED PROCESS FOR RETRIEVING DATA STORED USING A DIFFERENTCONFIGURATION OR PROTOCOL”, issued on 27 May 2014, U.S. Pat. No.8,738,587, entitled “PROCESSING A SYSTEM SEARCH REQUEST BY RETRIEVINGRESULTS FROM BOTH A NATIVE INDEX AND A VIRTUAL INDEX”, issued on 25 Jul.2013, U.S. patent application Ser. No. 14/266,832, entitled “PROCESSINGA SYSTEM SEARCH REQUEST ACROSS DISPARATE DATA COLLECTION SYSTEMS”, filedon 1 May 2014, and U.S. Pat. No. 9,514,189, entitled “PROCESSING ASYSTEM SEARCH REQUEST INCLUDING EXTERNAL DATA SOURCES”, issued on 6 Dec.2016, each of which is hereby incorporated by reference in its entiretyfor all purposes.

2.6.1. ERP Process Features

The ERP processes 410, 412 described above may include two operationmodes: a streaming mode and a reporting mode. The ERP processes 410, 412can operate in streaming mode only, in reporting mode only, or in bothmodes simultaneously. Operating in both modes simultaneously is referredto as mixed mode operation. In a mixed mode operation, the ERP at somepoint can stop providing the search head 210 with streaming results andonly provide reporting results thereafter, or the search head 210 atsome point may start ignoring streaming results it has been using andonly use reporting results thereafter.

The streaming mode returns search results in real time, with minimalprocessing, in response to the search request. The reporting modeprovides results of a search request with processing of the searchresults prior to providing them to the requesting search head 210, whichin turn provides results to the requesting client device. ERP operationwith such multiple modes provides greater performance flexibility withregard to report time, search latency, and resource utilization.

In a mixed mode operation, both streaming mode and reporting mode areoperating simultaneously. The streaming mode results (e.g., the machinedata obtained from the external data source) are provided to the searchhead 210, which can then process the results data (e.g., break themachine data into events, timestamp it, filter it, etc.) and integratethe results data with the results data from other external data sources,and/or from data stores 208 of the search head 210. The search head 210performs such processing and can immediately start returning interim(streaming mode) results to the user at the requesting client device;simultaneously, the search head 210 is waiting for the ERP process toprocess the data it is retrieving from the external data source as aresult of the concurrently executing reporting mode.

In some instances, the ERP process initially operates in a mixed mode,such that the streaming mode operates to enable the ERP quickly toreturn interim results (e.g., some of the machined data or unprocesseddata necessary to respond to a search request) to the search head 210,enabling the search head 210 to process the interim results and beginproviding to the client or search requester interim results that areresponsive to the query. Meanwhile, in this mixed mode, the ERP alsooperates concurrently in reporting mode, processing portions of machinedata in a manner responsive to the search query. Upon determining thatit has results from the reporting mode available to return to the searchhead, the ERP may halt processing in the mixed mode at that time (orsome later time) by stopping the return of data in streaming mode to thesearch head 210 and switching to reporting mode only. The ERP at thispoint starts sending interim results in reporting mode to the searchhead 210, which in turn may then present this processed data responsiveto the search request to the client or search requester. Typically, thesearch head 210 switches from using results from the ERP's streamingmode of operation to results from the ERP's reporting mode of operationwhen the higher bandwidth results from the reporting mode outstrip theamount of data processed by the search head 210 in the streaming mode ofERP operation.

A reporting mode may have a higher bandwidth because the ERP does nothave to spend time transferring data to the search head 210 forprocessing all the machine data. In addition, the ERP may optionallydirect another processor to do the processing.

The streaming mode of operation does not need to be stopped to gain thehigher bandwidth benefits of a reporting mode; the search head couldsimply stop using the streaming mode results—and start using thereporting mode results—when the bandwidth of the reporting mode hascaught up with or exceeded the amount of bandwidth provided by thestreaming mode. Thus, a variety of triggers and ways to accomplish asearch head's switch from using streaming mode results to usingreporting mode results may be appreciated by one skilled in the art.

The reporting mode can involve the ERP process (or an external system)performing event breaking, timestamping, filtering of events to matchthe search query request, and calculating statistics on the results. Theuser can request particular types of data, such as if the search queryitself involves types of events, or the search request may ask forstatistics on data, such as on events that meet the search request. Ineither case, the search head understands the query language used in thereceived query request, which may be a proprietary language. One examplequery language is Splunk Processing Language (SPL) developed by theassignee of the application, Splunk Inc. The search head 210 typicallyunderstands how to use that language to obtain data from the indexers,which store data in a format used by the SPLUNK® Enterprise system.

The ERP processes 410, 412 support the search head 210, as the searchhead 210 is not ordinarily configured to understand the format in whichdata is stored in external data sources such as Hadoop or SQL datasystems. Rather, the ERP process performs that translation from thequery submitted in the search support system's native format (e.g., SPLif SPLUNK® ENTERPRISE is used as the search support system) to a searchquery request format that will be accepted by the corresponding externaldata system. The external data system typically stores data in adifferent format from that of the search support system's native indexformat, and it utilizes a different query language (e.g., SQL orMapReduce, rather than SPL or the like).

As noted, the ERP process can operate in the streaming mode alone. Afterthe ERP process has performed the translation of the query request andreceived raw results from the streaming mode, the search head canintegrate the returned data with any data obtained from local datasources (e.g., native to the search support system), other external datasources, and other ERP processes (if such operations were required tosatisfy the terms of the search query). An advantage of mixed modeoperation is that, in addition to streaming mode, the ERP process isalso executing concurrently in reporting mode. Thus, the ERP process(rather than the search head 210) is processing query results (e.g.,performing event breaking, timestamping, filtering, possibly calculatingstatistics if required to be responsive to the search query request,etc.). It should be apparent to those skilled in the art that additionaltime is needed for the ERP process to perform the processing in such aconfiguration. Therefore, the streaming mode will allow the search head210 to start returning interim results to the user at the client devicebefore the ERP process can complete sufficient processing to startreturning any search results. The switchover between streaming andreporting mode happens when the ERP process determines that theswitchover is appropriate, such as when the ERP process determines itcan begin returning meaningful results from its reporting mode.

The operation described above illustrates the source of operationallatency: streaming mode has low latency (immediate results) and usuallyhas relatively low bandwidth (fewer results can be returned per unit oftime). In contrast, the concurrently running reporting mode hasrelatively high latency (it has to perform a lot more processing beforereturning any results) and usually has relatively high bandwidth (moreresults can be processed per unit of time). For example, when the ERPprocess does begin returning report results, it returns more processedresults than in the streaming mode, because, e.g., statistics only needto be calculated to be responsive to the search request. That is, theERP process doesn't have to take time to first return machine data tothe search head 210. As noted, the ERP process could be configured tooperate in streaming mode alone and return just the machine data for thesearch head 210 to process in a way that is responsive to the searchrequest. Alternatively, the ERP process can be configured to operate inthe reporting mode only. Also, the ERP process can be configured tooperate in streaming mode and reporting mode concurrently, as described,with the ERP process stopping the transmission of streaming results tothe search head 210 when the concurrently running reporting mode hascaught up and started providing results. The reporting mode does notrequire the processing of all machine data that is responsive to thesearch query request before the ERP process starts returning results;rather, the reporting mode usually performs processing of chunks ofevents and returns the processing results to the search head 210 foreach chunk.

For example, an ERP process can be configured to merely return thecontents of a search result file verbatim, with little or no processingof results. That way, the search head 210 performs all processing (suchas parsing byte streams into events, filtering, etc.). The ERP processcan be configured to perform additional intelligence, such as analyzingthe search request and handling all the computation that a native searchindexer process would otherwise perform. In this way, the configured ERPprocess provides greater flexibility in features while operatingaccording to desired preferences, such as response latency and resourcerequirements.

2.7. Data Ingestion

FIG. 5A is a flow chart of an example method that illustrates howindexers process, index, and store data received from forwarders, inaccordance with example embodiments. The data flow illustrated in FIG.5A is provided for illustrative purposes only; those skilled in the artwould understand that one or more of the steps of the processesillustrated in FIG. 5A may be removed or that the ordering of the stepsmay be changed. Furthermore, for the purposes of illustrating a clearexample, one or more particular system components are described in thecontext of performing various operations during each of the data flowstages. For example, a forwarder is described as receiving andprocessing machine data during an input phase; an indexer is describedas parsing and indexing machine data during parsing and indexing phases;and a search head is described as performing a search query during asearch phase. However, other system arrangements and distributions ofthe processing steps across system components may be used.

2.7.1. Input

At block 502, a forwarder receives data from an input source, such as adata source 202 shown in FIG. 2 . A forwarder initially may receive thedata as a raw data stream generated by the input source. For example, aforwarder may receive a data stream from a log file generated by anapplication server, from a stream of network data from a network device,or from any other source of data. In some embodiments, a forwarderreceives the raw data and may segment the data stream into “blocks”,possibly of a uniform data size, to facilitate subsequent processingsteps.

At block 504, a forwarder or other system component annotates each blockgenerated from the raw data with one or more metadata fields. Thesemetadata fields may, for example, provide information related to thedata block as a whole and may apply to each event that is subsequentlyderived from the data in the data block. For example, the metadatafields may include separate fields specifying each of a host, a source,and a source type related to the data block. A host field may contain avalue identifying a host name or IP address of a device that generatedthe data. A source field may contain a value identifying a source of thedata, such as a pathname of a file or a protocol and port related toreceived network data. A source type field may contain a valuespecifying a particular source type label for the data. Additionalmetadata fields may also be included during the input phase, such as acharacter encoding of the data, if known, and possibly other values thatprovide information relevant to later processing steps. In someembodiments, a forwarder forwards the annotated data blocks to anothersystem component (typically an indexer) for further processing.

The data intake and query system allows forwarding of data from one dataintake and query instance to another, or even to a third-party system.The data intake and query system can employ different types offorwarders in a configuration.

In some embodiments, a forwarder may contain the essential componentsneeded to forward data. A forwarder can gather data from a variety ofinputs and forward the data to an indexer for indexing and searching. Aforwarder can also tag metadata (e.g., source, source type, host, etc.).

In some embodiments, a forwarder has the capabilities of theaforementioned forwarder as well as additional capabilities. Theforwarder can parse data before forwarding the data (e.g., can associatea timestamp with a portion of data and create an event, etc.) and canroute data based on criteria such as source or type of event. Theforwarder can also index data locally while forwarding the data toanother indexer.

2.7.2. Components and Protocols for Receiving Data

In various embodiments, forwarders 204 may communicate with indexers 206via one or more data transfer protocols. Although any number of datatransfer protocols may be used, in some implementations, forwarders 204communicate with indexers 206 through use of a binary protocol referredto as “S2S” or “Splunk-to-Splunk” protocol. S2S protocol specifies that,after the forwarder 204 and indexer 206 connect over a network via aport, e.g., a Transmission Control Protocol (TCP) port, the forwarder204 sends a message to the indexer 206 describing the S2S protocolfeatures it would like to use. In response, the indexer 206 respondswith a message that describes the S2S protocol features that have beenaccepted for network communication with the forwarder 204, based on thefeature request description from forwarder 204. These requests mayinclude, for example, per-event ACK (acknowledgement) payloads, orvarious compression algorithms used to reduce the size of events to betransferred. After the forwarder 204 receives notification of thefeatures that will be used in communicating with indexer 206, theforwarder 204 begins sending serialized objects in binary format. Theobjects may include one or more events and/or various metadataassociated with the events. The objects may be compressed using variouscompression algorithms, or otherwise packaged, reduced, or encrypted. Insome embodiments, each event may be compressed separately, and in otherembodiments, packages of events may be compressed together. In otherembodiments, the S2S protocol may be used by forwarders 204 to sendinformation to any receiving component of the data intake and querysystem 108, including, e.g., components of the cloud-based data intakeand query system 306.

In various embodiments, other data transfer protocols may be used totransmit data from the one or more data sources 102 into the data intakeand query system. Specifically, in various embodiments, it may beadvantageous to set up protocols for transmitting data into the dataintake and query system without requiring the use of forwarders 204.Thus, there are embodiments in which the Hyper Text Transfer Protocol(HTTP) can be used to transmit data from data sources 102 to the dataintake and query system. In order to facilitate use of HTTP to transmitthis data, various embodiments of data intake and query system 108 mayinclude an HTTP Event Collector, or “HEC.” The HEC is an agent that ispart of the data intake and query system 108, and which can receiveinformation sent from data sources 102. Use of the HEC has the advantageof generally not requiring any additional components, either hardware orsoftware, to be added to or installed on the data sources 102, beyondwhat is required to send messages using HTTP “POST” commands.

In various embodiments, the HEC operates at the data intake and querysystem 108 to receive HTTP POST requests from various sources, e.g.,data sources 102. The HEC begins the process through generation oftokens, which can be distributed to the data sources 102 through avariety of known methods, both manual and automated. A data source 102can access the HEC by sending an HEC token to the HEC, e.g., through theauthentication header of an HTTP POST request. Once this token isrecognized by the HEC, the data source 102 can send data in any formatto the HEC, using the HTTP POST command. Although any type of data canbe sent to the HEC through an HTTP POST command, in variousimplementations, event data may be submitted, either in raw text format,or in JavaScript Object Notation (JSON) format. In variousimplementations, events sent in the JSON format may include metadata,such as one or more of a timestamp of the event, a host name of theevent, a source of the event, and a sourcetype of the event. Uponreceipt of the data from the HTTP POST command, the HEC may send thedata to an indexer 206, or, for example, in a cloud-based data intakeand query system 306, place the data in an ingestion buffer, such as amessage-oriented pub/sub or a stream processor.

2.7.3. Parsing

At block 506, an indexer receives data blocks from a forwarder andparses the data to organize the data into events. In some embodiments,to organize the data into events, an indexer may determine a source typeassociated with each data block (e.g., by extracting a source type labelfrom the metadata fields associated with the data block, etc.) and referto a source type configuration corresponding to the identified sourcetype. The source type definition may include one or more properties thatindicate to the indexer to automatically determine the boundaries withinthe received data that indicate the portions of machine data for events.In general, these properties may include regular expression-based rulesor delimiter rules where, for example, event boundaries may be indicatedby predefined characters or character strings. These predefinedcharacters may include punctuation marks or other special charactersincluding, for example, carriage returns, tabs, spaces, line breaks,etc. If a source type for the data is unknown to the indexer, an indexermay infer a source type for the data by examining the structure of thedata. Then, the indexer can apply an inferred source type definition tothe data to create the events.

At block 508, the indexer determines a timestamp for each event. Similarto the process for parsing machine data, an indexer may again refer to asource type definition associated with the data to locate one or moreproperties that indicate instructions for determining a timestamp foreach event. The properties may, for example, instruct an indexer toextract a time value from a portion of data for the event, tointerpolate time values based on timestamps associated with temporallyproximate events, to create a timestamp based on a time the portion ofmachine data was received or generated, to use the timestamp of aprevious event, or use any other rules for determining timestamps.

At block 510, the indexer associates with each event one or moremetadata fields including a field containing the timestamp determinedfor the event. In some embodiments, a timestamp may be included in themetadata fields. These metadata fields may include any number of“default fields” that are associated with all events and may alsoinclude one or more custom fields as defined by a user. Similar to themetadata fields associated with the data blocks at block 504, thedefault metadata fields associated with each event may include a host,source, and source type field including or in addition to a fieldstoring the timestamp.

At block 512, an indexer may optionally apply one or moretransformations to data included in the events created at block 506. Forexample, such transformations can include removing a portion of an event(e.g., a portion used to define event boundaries, extraneous charactersfrom the event, other extraneous text, etc.), masking a portion of anevent (e.g., masking a credit card number), removing redundant portionsof an event, etc. The transformations applied to events may, forexample, be specified in one or more configuration files and referencedby one or more source type definitions.

FIG. 5C illustrates an illustrative example of machine data can bestored in a data store in accordance with various disclosed embodiments.In other embodiments, machine data can be stored in a flat file in acorresponding bucket with an associated index file, such as a timeseries index or “TSIDX.” As such, the depiction of machine data andassociated metadata as rows and columns in the table of FIG. 5C ismerely illustrative and is not intended to limit the data format inwhich the machine data and metadata is stored in various embodimentsdescribed herein. In one particular embodiment, machine data can bestored in a compressed or encrypted formatted. In such embodiments, themachine data can be stored with or be associated with data thatdescribes the compression or encryption scheme with which the machinedata is stored. The information about the compression or encryptionscheme can be used to decompress or decrypt the machine data, and anymetadata with which it is stored, at search time.

As mentioned above, certain metadata, e.g., host 536, source 537, sourcetype 538 and timestamps 535 can be generated for each event, andassociated with a corresponding portion of machine data 539 when storingthe event data in a data store, e.g., data store 208. Any of themetadata can be extracted from the corresponding machine data, orsupplied or defined by an entity, such as a user or computer system. Themetadata fields can become part of or stored with the event. Note thatwhile the timestamp metadata field 535 can be extracted from the rawdata of each event, the values for the other metadata fields may bedetermined by the indexer based on information it receives pertaining tothe source of the data separate from the machine data.

While certain default or user-defined metadata fields can be extractedfrom the machine data for indexing purposes, all the machine data withinan event can be maintained in its original condition. As such, inembodiments in which the portion of machine data included in an event isunprocessed or otherwise unaltered, it is referred to herein as aportion of raw machine data. In other embodiments, the port of machinedata in an event can be processed or otherwise altered. As such, unlesscertain information needs to be removed for some reasons (e.g.extraneous information, confidential information), all the raw machinedata contained in an event can be preserved and saved in its originalform. Accordingly, the data store in which the event records are storedis sometimes referred to as a “raw record data store.” The raw recorddata store contains a record of the raw event data tagged with thevarious default fields.

In FIG. 5C, the first three rows of the table represent events 531, 532,and 533 and are related to a server access log that records requestsfrom multiple clients processed by a server, as indicated by entry of“access.log” in the source column 537.

In the example shown in FIG. 5C, each of the events 531-533 isassociated with a discrete request made from a client device. The rawmachine data generated by the server and extracted from a server accesslog can include the IP address of the client 540, the user id of theperson requesting the document 541, the time the server finishedprocessing the request 542, the request line from the client 543, thestatus code returned by the server to the client 545, the size of theobject returned to the client (in this case, the gif file requested bythe client) 546 and the time spent to serve the request in microseconds.As seen in FIG. 5C, all the raw machine data retrieved from the serveraccess log is retained and stored as part of the corresponding events,531-533 in the data store.

Event 534 is associated with an entry in a server error log, asindicated by “error.log” in the source column 537 that records errorsthat the server encountered when processing a client request. Similar tothe events 531-533 related to the server access log, all the raw machinedata in the error log file pertaining to event 534 can be preserved andstored as part of the event 534.

Saving minimally processed or unprocessed machine data in a data storeassociated with metadata fields in the manner similar to that shown inFIG. 5C is advantageous because it allows search of all the machine dataat search time instead of searching only previously specified andidentified fields or field-value pairs. As mentioned above, because datastructures used by various embodiments of the present disclosuremaintain the underlying raw machine data and use a late-binding schemafor searching the raw machines data, it enables a user to continueinvestigating and learn valuable insights about the raw data. In otherwords, the user is not compelled to know about all the fields ofinformation that will be needed at data ingestion time. As a user learnsmore about the data in the events, the user can continue to refine thelate-binding schema by defining new extraction rules or modifying ordeleting existing extraction rules used by the system.

2.7.4. Indexing

At blocks 514 and 516, an indexer can optionally generate a keywordindex to facilitate fast keyword searching for events. To build akeyword index, at block 514, the indexer identifies a set of keywords ineach event. At block 516, the indexer includes the identified keywordsin an index, which associates each stored keyword with referencepointers to events containing that keyword (or to locations withinevents where that keyword is located, other location identifiers, etc.).When an indexer subsequently receives a keyword-based query, the indexercan access the keyword index to quickly identify events containing thekeyword.

In some embodiments, the keyword index may include entries for fieldname-value pairs found in events, where a field name-value pair caninclude a pair of keywords connected by a symbol, such as an equals signor colon. This way, events containing these field name-value pairs canbe quickly located. In some embodiments, fields can automatically begenerated for some or all of the field names of the field name-valuepairs at the time of indexing. For example, if the string“dest=10.0.1.2” is found in an event, a field named “dest” may becreated for the event and assigned a value of “10.0.1.2”.

At block 518, the indexer stores the events with an associated timestampin a data store 208. Timestamps enable a user to search for events basedon a time range. In some embodiments, the stored events are organizedinto “buckets,” where each bucket stores events associated with aspecific time range based on the timestamps associated with each event.This improves time-based searching, as well as allows for events withrecent timestamps, which may have a higher likelihood of being accessed,to be stored in a faster memory to facilitate faster retrieval. Forexample, buckets containing the most recent events can be stored inflash memory rather than on a hard disk. In some embodiments, eachbucket may be associated with an identifier, a time range, and a sizeconstraint.

Each indexer 206 may be responsible for storing and searching a subsetof the events contained in a corresponding data store 208. Bydistributing events among the indexers 206 and data stores 208, theindexers 206 can analyze events for a query in parallel. For example,using map-reduce techniques, each indexer 206 returns partial responsesfor a subset of events to a search head 210 that combines the results toproduce an answer for the query. By storing events in buckets forspecific time ranges, an indexer 206 may further optimize the dataretrieval process by searching buckets corresponding to time ranges thatare relevant to a query. In some embodiments, each bucket may beassociated with an identifier, a time range, and a size constraint. Incertain embodiments, a bucket can correspond to a file system directoryand the machine data, or events, of a bucket can be stored in one ormore files of the file system directory. The file system directory caninclude additional files, such as one or more inverted indexes, highperformance indexes, permissions files, configuration files, etc.

In some embodiments, each indexer has a home directory and a colddirectory. The home directory of an indexer stores hot buckets and warmbuckets, and the cold directory of an indexer stores cold buckets. A hotbucket is a bucket that is capable of receiving and storing events. Awarm bucket is a bucket that can no longer receive events for storagebut has not yet been moved to the cold directory. A cold bucket is abucket that can no longer receive events and may be a bucket that waspreviously stored in the home directory. The home directory may bestored in faster memory, such as flash memory, as events may be activelywritten to the home directory, and the home directory may typicallystore events that are more frequently searched and thus are accessedmore frequently. The cold directory may be stored in slower and/orlarger memory, such as a hard disk, as events are no longer beingwritten to the cold directory, and the cold directory may typicallystore events that are not as frequently searched and thus are accessedless frequently. In some embodiments, an indexer may also have aquarantine bucket that contains events having potentially inaccurateinformation, such as an incorrect timestamp associated with the event ora timestamp that appears to be an unreasonable timestamp for thecorresponding event. The quarantine bucket may have events from any timerange; as such, the quarantine bucket may always be searched at searchtime. Additionally, an indexer 206 may store old, archived data in afrozen bucket that is not capable of being searched at search time. Insome embodiments, a frozen bucket may be stored in slower and/or largermemory, such as a hard disk, and may be stored in offline and/or remotestorage.

Moreover, events and buckets can also be replicated across differentindexers 206 and data stores 208 to facilitate high availability anddisaster recovery as described in U.S. Pat. No. 9,130,971, entitled“SITE-BASED SEARCH AFFINITY”, issued on 8 Sep. 2015, and in U.S. patentSer. No. 14/266,817, entitled “MULTI-SITE CLUSTERING”, issued on 1 Sep.2015, each of which is hereby incorporated by reference in its entiretyfor all purposes.

FIG. 5B is a block diagram of an example data store 501 that includes adirectory for each index (or partition) that contains a portion of datamanaged by an indexer 206. FIG. 5B further illustrates details of anembodiment of an inverted index 507B and an event reference array 515associated with inverted index 507B.

The data store 501 can correspond to a data store 208 that stores eventsmanaged by an indexer 206 or can correspond to a different data storeassociated with an indexer 206. In the illustrated embodiment, the datastore 501 includes a _main directory 503 associated with a _main indexand a _test directory 505 associated with a _test index. However, thedata store 501 can include fewer or more directories. In someembodiments, multiple indexes can share a single directory, or allindexes can share a common directory. Additionally, although illustratedas a single data store 501, it will be understood that the data store501 can be implemented as multiple data stores storing differentportions of the information shown in FIG. 5B. For example, a singleindex or partition can span multiple directories or multiple data storesand can be indexed or searched by multiple corresponding indexers.

In the illustrated embodiment of FIG. 5B, the index-specific directories503 and 505 include inverted indexes 507A, 507B and 509A, 509B,respectively. The inverted indexes 507A . . . 507B, and 509A . . . 509Bcan be keyword indexes or field-value pair indexes described herein andcan include less or more information that depicted in FIG. 5B.

In some embodiments, the inverted index 507A . . . 507B, and 509A . . .509B can correspond to a distinct time-series bucket that is managed bythe indexer 206 and that contains events corresponding to the relevantindex (e.g., _main index, _test index). As such, each inverted index507A . . . 507B, and 509A . . . 509B can correspond to a particularrange of time for an index. Additional files, such as high-performanceindexes for each time-series bucket of an index, can also be stored inthe same directory as the inverted indexes 507A . . . 507B, and 509A . .. 509B. In some embodiments inverted index 507A . . . 507B, and 509A . .. 509B can correspond to multiple time-series buckets or invertedindexes 507A . . . 507B, and 509A . . . 509B can correspond to a singletime-series bucket.

Each inverted index 507A . . . 507B, and 509A . . . 509B can include oneor more entries, such as keyword (or token) entries or field-value pairentries. Furthermore, in certain embodiments, the inverted indexes 507A. . . 507B, and 509A . . . 509B can include additional information, suchas a time range 523 associated with the inverted index 507A . . . 507B,and 509A . . . 509B or an index identifier 525 identifying the indexassociated with the inverted index 507A . . . 507B, and 509A . . . 509B.However, each inverted index 507A . . . 507B, and 509A . . . 509B caninclude less or more information than depicted.

Token entries, such as token entries 511 illustrated in inverted index507B, can include a token 511A (e.g., “error,” “itemID,” etc.) and eventreferences 511B indicative of events that include the token 511A. Forexample, for the token “error,” 511A the corresponding token entry 511includes the token “error” 511A and an event reference, or uniqueidentifier, for each event stored in the corresponding time-seriesbucket that includes the token “error.” 511A. In the illustratedembodiment of FIG. 5B, the error token entry 511 includes theidentifiers 3, 5, 6, 8, 11, and 12 corresponding to events managed bythe indexer 206 and associated with the index_main 503 that is locatedin the time-series bucket associated with the inverted index 507B.

In some cases, some token entries 511 can be default entries,automatically determined entries, or user specified entries. In someembodiments, the indexer 206 can identify each word or string in anevent as a distinct token and generate a token entry 511 for it. In somecases, the indexer 206 can identify the beginning and ending of tokensbased on punctuation, spaces, as described in greater detail herein. Incertain cases, the indexer 206 can rely on user input or a configurationfile to identify tokens for token entries 511, etc. It will beunderstood that any combination of token entries 511 can be included asa default, automatically determined, and/or included based onuser-specified criteria.

Similarly, field-value pair entries, such as field-value pair entries513 shown in inverted index 507B, can include a field-value pair 513Aand event references 513B indicative of events that include a fieldvalue that corresponds to the field-value pair 513A. For example, for afield-value pair sourcetype::sendmail, a field-value pair entry wouldinclude the field-value pair sourcetype::sendmail and a uniqueidentifier, or event reference, for each event stored in thecorresponding time-series bucket that includes a sendmail sourcetype.

In some cases, the field-value pair entries 513 can be default entries,automatically determined entries, or user specified entries. As anon-limiting example, the field-value pair entries 513 for the fieldshost, source, sourcetype can be included in the inverted indexes 507A .. . 507B, and 509A . . . 509B as a default. As such, all of the invertedindexes 507A . . . 507B, and 509A . . . 509B can include field-valuepair entries 513 for the fields host, source, sourcetype. As yet anothernon-limiting example, the field-value pair entries 513 for theIP_address field can be user specified and may only appear in theinverted index 507B based on user-specified criteria. As anothernon-limiting example, as the indexer 206 indexes the events, it canautomatically identify field-value pairs and create field-value pairentries 513. For example, based on the indexers 206 review of events, itcan identify IP_address as a field in each event and add the IP_addressfield-value pair entries 513 to the inverted index 507B. It will beunderstood that any combination of field-value pair entries 513 can beincluded as a default, automatically determined, or included based onuser-specified criteria.

Each unique identifier 517, or event reference, can correspond to aunique event located in the time series bucket. However, the same eventreference can be located in multiple entries. For example, if an eventhas a sourcetype splunkd, host www1 and token “warning,” then the uniqueidentifier for the event will appear in the field-value pair entries 513sourcetype::splunkd and host::www1, as well as the token entry“warning.” 511. With reference to the illustrated embodiment of FIG. 5Band the event that corresponds to the event reference 3, the eventreference 3 is found in the field-value pair entries 513 host::hostA,source::sourceB, sourcetype::sourcetypeA, and IP_address:: 91.205.189.15indicating that the event corresponding to the event references is fromhostA, sourceB, of sourcetypeA, and includes 91.205.189.15 in the eventdata.

For some fields, the unique identifier is located in only onefield-value pair entry for a particular field. For example, the invertedindex 507B may include four sourcetype field-value pair entriescorresponding to four different sourcetypes of the events stored in abucket (e.g., sourcetypes: sendmail, splunkd, web_access, andweb_service). Within those four sourcetype field-value pair entries, anidentifier for a particular event may appear in only one of thefield-value pair entries 513. With continued reference to the exampleillustrated embodiment of FIG. 5B, since the event reference 7 appearsin the field-value pair entry sourcetype::sourcetypeA, then it does notappear in the other field-value pair entries for the sourcetype field,including sourcetype::sourcetypeB, sourcetype::sourcetypeC, andsourcetype::sourcetypeD.

The event references 517 can be used to locate the events in thecorresponding bucket. For example, the inverted index 507B can include,or be associated with, an event reference array 515. The event referencearray 515 can include an array entry 517 for each event reference in theinverted index 507B. Each array entry 517 can include locationinformation 519 of the event corresponding to the unique identifier(non-limiting example: seek address of the event), a timestamp 521associated with the event, or additional information regarding the eventassociated with the event reference, etc.

For each token entry 511 or field-value pair entry 513, the eventreference or unique identifiers can be listed in chronological order orthe value of the event reference can be assigned based on chronologicaldata, such as a timestamp associated with the event referenced by theevent reference. For example, the event reference 1 in the illustratedembodiment of FIG. 5B can correspond to the first-in-time event for thebucket, and the event reference 12 can correspond to the last-in-timeevent for the bucket. However, the event references can be listed in anyorder, such as reverse chronological order, ascending order, descendingorder, or some other order, etc. Further, the entries can be sorted. Forexample, the entries can be sorted alphabetically (collectively orwithin a particular group), by entry origin (e.g., default,automatically generated, user-specified, etc.), by entry type (e.g.,field-value pair entry, token entry, etc.), or chronologically by whenadded to the inverted index 507B, etc. In the illustrated embodiment ofFIG. 5B, the entries are sorted first by entry type and thenalphabetically.

As a non-limiting example of how the inverted indexes 507A . . . 507B,and 509A . . . 509B can be used during a data categorization requestcommand, the indexers 206 can receive filter criteria indicating datathat is to be categorized and categorization criteria indicating how thedata is to be categorized. Example filter criteria can include, but isnot limited to, indexes (or partitions), hosts, sources, sourcetypes,time ranges, field identifier, keywords, etc.

Using the filter criteria, the indexer 206 identifies relevant invertedindexes to be searched. For example, if the filter criteria include aset of partitions, the indexer 206 can identify the inverted indexes507A . . . 507B, and 509A . . . 509B stored in the directorycorresponding to the particular partition as relevant inverted indexes.Other means can be used to identify inverted indexes associated with apartition of interest. For example, in some embodiments, the indexer 206can review an entry in the inverted indexes 507A . . . 507B, and 509A .. . 509B, such as a field-value pair entry 513 to determine if aparticular inverted index is relevant. If the filter criteria do notidentify any partition, then the indexer 206 can identify all invertedindexes managed by the indexer 206 as relevant inverted indexes.

Similarly, if the filter criteria include a time range, the indexer 206can identify inverted indexes corresponding to buckets that satisfy atleast a portion of the time range as relevant inverted indexes. Forexample, if the time range is last hour then the indexer 206 canidentify all inverted indexes that correspond to buckets storing eventsassociated with timestamps within the last hour as relevant invertedindexes.

When used in combination, an index filter criterion specifying one ormore partitions and a time range filter criterion specifying aparticular time range can be used to identify a subset of invertedindexes within a particular directory (or otherwise associated with aparticular partition) as relevant inverted indexes. As such, the indexer206 can focus the processing to only a subset of the total number ofinverted indexes that the indexer manages.

Once the relevant inverted indexes are identified, the indexer canreview them using any additional filter criteria to identify events thatsatisfy the filter criteria. In some cases, using the known location ofthe directory in which the relevant inverted indexes are located, theindexer can determine that any events identified using the relevantinverted indexes satisfy an index filter criterion. For example, if thefilter criteria include a partition main, then the indexer can determinethat any events identified using inverted indexes within the partitionmain directory (or otherwise associated with the partition main) satisfythe index filter criterion.

Furthermore, based on the time range associated with each invertedindex, the indexer 206 can determine that that any events identifiedusing a particular inverted index satisfies a time range filtercriterion. For example, if a time range filter criterion is for the lasthour and a particular inverted index corresponds to events within a timerange of 50 minutes ago to 35 minutes ago, the indexer 206 can determinethat any events identified using the particular inverted index satisfythe time range filter criterion. Conversely, if the particular invertedindex corresponds to events within a time range of 59 minutes ago to 62minutes ago, the indexer can determine that some events identified usingthe particular inverted index may not satisfy the time range filtercriterion.

Using the inverted indexes 507A . . . 507B, and 509A . . . 509B, theindexer 206 can identify event references (and therefore events) thatsatisfy the filter criteria. For example, if the token “error” 511A is afilter criterion, the indexer 206 can track all event references withinthe token entry “error.” 511A. Similarly, the indexer 206 can identifyother event references located in other token entries or field-valuepair entries 513 that match the filter criteria. The system can identifyevent references located in all of the entries identified by the filtercriteria. For example, if the filter criteria include the token “error”511A and field-value pair sourcetype::web_ui, the indexer 206 can trackthe event references found in both the token entry “error” 511A and thefield-value pair entry 513 sourcetype::web_ui. As mentioned previously,in some cases, such as when multiple values are identified for aparticular filter criterion (e.g., multiple sources for a source filtercriterion), the system can identify event references located in at leastone of the entries corresponding to the multiple values and in all otherentries identified by the filter criteria. The indexer 206 can determinethat the events associated with the identified event references satisfythe filter criteria.

In some cases, the indexer 206 can further consult a timestampassociated with the event reference to determine whether an eventsatisfies the filter criteria. For example, if an inverted indexcorresponds to a time range that is partially outside of a time rangefilter criterion, then the indexer 206 can consult a timestampassociated with the event reference to determine whether thecorresponding event satisfies the time range criterion. In someembodiments, to identify events that satisfy a time range, the indexer206 can review an array, such as the event reference array 515 thatidentifies the time associated with the events. Furthermore, asmentioned above using the known location of the directory in which therelevant inverted indexes are located (or other index identifier), theindexer 206 can determine that any events identified using the relevantinverted indexes satisfy the index filter criterion.

In some cases, based on the filter criteria, the indexer 206 reviews anextraction rule. In certain embodiments, if the filter criteria includesa field name that does not correspond to a field-value pair entry 513 inan inverted index, the indexer 206 can review an extraction rule, whichmay be located in a configuration file, to identify a field thatcorresponds to a field-value pair entry 513 in the inverted index 507B.

For example, the filter criteria includes a field name “sessionID” andthe indexer determines that at least one relevant inverted index doesnot include a field-value pair entry 513 corresponding to the field namesessionID, the indexer can review an extraction rule that identifies howthe sessionID field is to be extracted from a particular host, source,or sourcetype (implicitly identifying the particular host, source, orsourcetype that includes a sessionID field). The indexer can replace thefield name “sessionID” in the filter criteria with the identified host,source, or sourcetype. In some cases, the field name “sessionID” may beassociated with multiples hosts, sources, or sourcetypes, in which case,all identified hosts, sources, and sourcetypes can be added as filtercriteria. In some cases, the identified host, source, or sourcetype canreplace or be appended to a filter criterion, or be excluded. Forexample, if the filter criteria includes a criterion for source S1 andthe “sessionID” field is found in source S2, the source S2 can replaceS1 in the filter criteria, be appended such that the filter criteriaincludes source S1 and source S2, or be excluded based on the presenceof the filter criterion source S1. If the identified host, source, orsourcetype is included in the filter criteria, the indexer can thenidentify a field-value pair entry 513 in the inverted index 507B thatincludes a field value corresponding to the identity of the particularhost, source, or sourcetype identified using the extraction rule.

Once the events that satisfy the filter criteria are identified, thedata intake and query system, such as the indexer 206 can categorize theresults based on the categorization criteria. The categorizationcriteria can include categories for grouping the results, such as anycombination of partition, source, sourcetype, or host, or othercategories or fields as desired.

The indexer 206 can use the categorization criteria to identifycategorization criteria-value pairs or categorization criteria values bywhich to categorize or group the results. The categorizationcriteria-value pairs can correspond to one or more field-value pairentries 513 stored in a relevant inverted index, one or more index-valuepairs based on a directory in which the inverted index 507B is locatedor an entry in the inverted index 507B (or other means by which aninverted index can be associated with a partition), or othercriteria-value pair that identifies a general category and a particularvalue for that category. The categorization criteria values cancorrespond to the value portion of the categorization criteria-valuepair.

As mentioned, in some cases, the categorization criteria-value pairs cancorrespond to one or more field-value pair entries 513 stored in therelevant inverted indexes. For example, the categorizationcriteria-value pairs can correspond to field-value pair entries 513 ofhost, source, and sourcetype (or other field-value pair entry 513 asdesired). For instance, if there are ten different hosts, four differentsources, and five different sourcetypes for an inverted index, then theinverted index 507B can include ten host field-value pair entries, foursource field-value pair entries, and five sourcetype field-value pairentries. The indexer 206 can use the nineteen distinct field-value pairentries as categorization criteria-value pairs to group the results.

Specifically, the indexer 206 can identify the location of the eventreferences associated with the events that satisfy the filter criteriawithin the field-value pairs and group the event references based ontheir location. As such, the indexer 206 can identify the particularfield value associated with the event corresponding to the eventreference. For example, if the categorization criteria include host andsourcetype, the host field-value pair entries and sourcetype field-valuepair entries can be used as categorization criteria-value pairs toidentify the specific host and sourcetype associated with the eventsthat satisfy the filter criteria.

In addition, as mentioned, categorization criteria-value pairs cancorrespond to data other than the field-value pair entries 513 in therelevant inverted indexes. For example, if partition or index is used asa categorization criterion, the inverted indexes 507A . . . 507B, and509A . . . 509B may not include partition field-value pair entries.Rather, the indexer 206 can identify the categorization criteria-valuepair associated with the partition based on the directory in which aninverted index is located, information in the inverted index 507B, orother information that associates the inverted index 507B with thepartition, etc. As such a variety of methods can be used to identify thecategorization criteria-value pairs from the categorization criteria.

Accordingly based on the categorization criteria (and categorizationcriteria-value pairs), the indexer 206 can generate groupings based onthe events that satisfy the filter criteria. As a non-limiting example,if the categorization criteria include a partition and sourcetype, thenthe groupings can correspond to events that are associated with eachunique combination of partition and sourcetype. For instance, if thereare three different partitions and two different sourcetypes associatedwith the identified events, then the six different groups can be formed,each with a unique partition value-sourcetype value combination.Similarly, if the categorization criteria include partition, sourcetype,and host and there are two different partitions, three sourcetypes, andfive hosts associated with the identified events, then the indexer 206can generate up to thirty groups for the results that satisfy the filtercriteria. Each group can be associated with a unique combination ofcategorization criteria-value pairs (e.g., unique combinations ofpartition value sourcetype value, and host value).

In addition, the indexer 206 can count the number of events associatedwith each group based on the number of events that meet the uniquecombination of categorization criteria for a particular group (or matchthe categorization criteria-value pairs for the particular group). Withcontinued reference to the example above, the indexer 206 can count thenumber of events that meet the unique combination of partition,sourcetype, and host for a particular group.

Each indexer communicates the groupings to the search head 210. Thesearch head 210 can aggregate the groupings from the indexers 206 andprovide the groupings for display. In some cases, the groups aredisplayed based on at least one of the host, source, sourcetype, orpartition associated with the groupings. In some embodiments, the searchhead 210 can further display the groups based on display criteria, suchas a display order or a sort order as described in greater detail above.

As a non-limiting example and with reference to FIG. 5B, consider arequest received by an indexer 206 that includes the following filtercriteria: keyword=error, partition=_main, time range=3/1/1716:22.00.000-16:28.00.000, sourcetype=sourcetypeC, host=hostB, and thefollowing categorization criteria: source.

Based on the above criteria, the indexer 206 identifies _main directory503 and can ignore _test directory 505 and any other partition-specificdirectories. The indexer 206 determines that inverted partition 507B isa relevant partition based on its location within the _main directory503 and the time range associated with it. For sake of simplicity inthis example, the indexer 206 determines that no other inverted indexesin the _main directory 503, such as inverted index 507A satisfy the timerange criterion.

Having identified the relevant inverted index 507B, the indexer 206reviews the token entries 511 and the field-value pair entries 513 toidentify event references, or events that satisfy all of the filtercriteria.

With respect to the token entries 511, the indexer 206 can review theerror token entry and identify event references 3, 5, 6, 8, 11, 12,indicating that the term “error” is found in the corresponding events.Similarly, the indexer 206 can identify event references 4, 5, 6, 8, 9,10, 11 in the field-value pair entry 513 sourcetype::sourcetypeC andevent references 2, 5, 6, 8, 10, 11 in the field-value pair entry 513host::hostB. As the filter criteria did not include a source or anIP_address field-value pair, the indexer 206 can ignore thosefield-value pair entries.

In addition to identifying event references found in at least one tokenentry or field-value pair entry (e.g., event references 3, 4, 5, 6, 8,9, 10, 11, 12), the indexer 206 can identify events (and correspondingevent references) that satisfy the time range criterion using the eventreference array 1614 (e.g., event references 2, 3, 4, 5, 6, 7, 8, 9,10). Using the information obtained from the inverted index 507B(including the event reference array 515), the indexer 206 can identifythe event references that satisfy all of the filter criteria (e.g.,event references 5, 6, 8).

Having identified the events (and event references) that satisfy all ofthe filter criteria, the indexer 206 can group the event referencesusing the received categorization criteria (source). In doing so, theindexer can determine that event references 5 and 6 are located in thefield-value pair entry 513 source::sourceD (or have matchingcategorization criteria-value pairs) and event reference 8 is located inthe field-value pair entry 513 source::sourceC. Accordingly, the indexer206 can generate a sourceC group having a count of one corresponding toreference 8 and a sourceD group having a count of two corresponding toreferences 5 and 6. This information can be communicated to the searchhead 210. In turn the search head 210 can aggregate the results from thevarious indexers and display the groupings. As mentioned above, in someembodiments, the groupings can be displayed based at least in part onthe categorization criteria, including at least one of host, source,sourcetype, or partition.

It will be understood that a change to any of the filter criteria orcategorization criteria can result in different groupings. As a onenon-limiting example, a request received by an indexer 206 that includesthe following filter criteria: partition=_main, time range=3/1/17 3/1/1716:21:20.000-16:28:17.000, and the following categorization criteria:host, source, sourcetype would result in the indexer identifying eventreferences 1-12 as satisfying the filter criteria. The indexer wouldthen generate up to 24 groupings corresponding to the 24 differentcombinations of the categorization criteria-value pairs, including host(hostA, hostB), source (sourceA, sourceB, sourceC, sourceD), andsourcetype (sourcetypeA, sourcetypeB, sourcetypeC). However, as thereare only twelve events identifiers in the illustrated embodiment andsome fall into the same grouping, the indexer generates eight groups andcounts as follows:

Group 1 (hostA, sourceA, sourcetypeA): 1 (event reference 7)

Group 2 (hostA, sourceA, sourcetypeB): 2 (event references 1, 12)

Group 3 (hostA, sourceA, sourcetypeC): 1 (event reference 4)

Group 4 (hostA, sourceB, sourcetypeA): 1 (event reference 3)

Group 5 (hostA, sourceB, sourcetypeC): 1 (event reference 9)

Group 6 (hostB, sourceC, sourcetypeA): 1 (event reference 2)

Group 7 (hostB, sourceC, sourcetypeC): 2 (event references 8, 11)

Group 8 (hostB, sourceD, sourcetypeC): 3 (event references 5, 6, 10)

As noted, each group has a unique combination of categorizationcriteria-value pairs or categorization criteria values. The indexer 206communicates the groups to the search head 210 for aggregation withresults received from other indexers. In communicating the groups to thesearch head 210, the indexer 206 can include the categorizationcriteria-value pairs for each group and the count. In some embodiments,the indexer 206 can include more or less information. For example, theindexer 206 can include the event references associated with each groupand other identifying information, such as the indexer 206 or invertedindex used to identify the groups.

As another non-limiting examples, a request received by an indexer 206that includes the following filter criteria: partition=_main, timerange=3/1/17 3/1/17 16:21:20.000-16:28:17.000, source=sourceA, sourceD,and keyword=itemID and the following categorization criteria: host,source, sourcetype would result in the indexer 206 identifying eventreferences 4, 7, and 10 as satisfying the filter criteria, and generatethe following groups:

Group 1 (hostA, sourceA, sourcetypeC): 1 (event reference 4)

Group 2 (hostA, sourceA, sourcetypeA): 1 (event reference 7)

Group 3 (hostB, sourceD, sourcetypeC): 1 (event references 10)

The indexer 206 communicates the groups to the search head 210 foraggregation with results received from other indexers. As will beunderstand there are myriad ways for filtering and categorizing theevents and event references. For example, the indexer 206 can reviewmultiple inverted indexes associated with a partition or review theinverted indexes 507A . . . 507B, and 509A . . . 509B of multiplepartitions, and categorize the data using any one or any combination ofpartition, host, source, sourcetype, or other category, as desired.

Further, if a user interacts with a particular group, the indexer 206can provide additional information regarding the group. For example, theindexer 206 can perform a targeted search or sampling of the events thatsatisfy the filter criteria and the categorization criteria for theselected group, also referred to as the filter criteria corresponding tothe group or filter criteria associated with the group.

In some cases, to provide the additional information, the indexer 206relies on the inverted index 507B. For example, the indexer 206 canidentify the event references associated with the events that satisfythe filter criteria and the categorization criteria for the selectedgroup and then use the event reference array 515 to access some or allof the identified events. In some cases, the categorization criteriavalues or categorization criteria-value pairs associated with the groupbecome part of the filter criteria for the review.

With reference to FIG. 5B for instance, suppose a group is displayedwith a count of six corresponding to event references 4, 5, 6, 8, 10, 11(i.e., event references 4, 5, 6, 8, 10, 11 satisfy the filter criteriaand are associated with matching categorization criteria values orcategorization criteria-value pairs) and a user interacts with the group(e.g., selecting the group, clicking on the group, etc.). In response,the search head 210 communicates with the indexer 206 to provideadditional information regarding the group.

In some embodiments, the indexer 206 identifies the event referencesassociated with the group using the filter criteria and thecategorization criteria for the group (e.g., categorization criteriavalues or categorization criteria-value pairs unique to the group).Together, the filter criteria and the categorization criteria for thegroup can be referred to as the filter criteria associated with thegroup. Using the filter criteria associated with the group, the indexeridentifies event references 4, 5, 6, 8, 10, 11.

Based on a sampling criteria, discussed in greater detail above, theindexer 206 can determine that it will analyze a sample of the eventsassociated with the event references 4, 5, 6, 8, 10, 11. For example,the sample can include analyzing event data associated with the eventreferences 5, 8, 10. In some embodiments, the indexer 206 can use theevent reference array 515 to access the event data associated with theevent references 5, 8, 10. Once accessed, the indexer 206 can compilethe relevant information and provide it to the search head 210 foraggregation with results from other indexers. By identifying events andsampling event data using the inverted indexes 507A . . . 507B, and 509A. . . 509B, the indexer 206 can reduce the amount of actual data this isanalyzed and the number of events that are accessed in order to generatethe summary of the group and provide a response in less time.

2.8. Query Processing

FIG. 6A is a flowchart of an example method that illustrates how asearch head 210 and indexers 206 perform a search query, in accordancewith example embodiments. At block 602, a search head 210 receives asearch query from a client. At block 604, the search head 210 analyzesthe search query to determine what portion(s) of the query can bedelegated to indexers and what portions of the query can be executedlocally by the search head 210. At block 606, the search head 210distributes the determined portions of the query to the appropriateindexers. In some embodiments, a search head cluster may take the placeof an independent search head where each search head in the search head210 cluster coordinates with peer search heads in the search headcluster to schedule jobs, replicate search results, updateconfigurations, fulfill search requests, etc. In some embodiments, thesearch head (or each search head) 210 communicates with a master node(also known as a cluster master, not shown in FIG. 2 ) that provides thesearch head 210 with a list of indexers to which the search head 210 candistribute the determined portions of the query. The master nodemaintains a list of active indexers and can also designate whichindexers may have responsibility for responding to queries over certainsets of events. A search head 210 may communicate with the master nodebefore the search head 210 distributes queries to indexers to discoverthe addresses of active indexers.

At block 608, the indexers 206, to which the query was distributed,search the data stores associated with them for events that areresponsive to the query. To determine which events are responsive to thequery, the indexer searches for events that match the criteria specifiedin the query. These criteria can include matching keywords or specificvalues for certain fields. The searching operations at block 608 may usethe late-binding schema to extract values for specified fields fromevents at the time the query is processed. In some embodiments, one ormore rules for extracting field values may be specified as part of asource type definition in a configuration file. The indexers 206 maythen either send the relevant events back to the search head 210, or usethe events to determine a partial result, and send the partial resultback to the search head 210.

At block 610, the search head 210 combines the partial results and/orevents received from the indexers 206 to produce a final result for thequery. In some examples, the results of the query are indicative ofperformance or security of the IT environment and may help improve theperformance of components in the IT environment. This final result maycomprise different types of data depending on what the query requested.For example, the results can include a listing of matching eventsreturned by the query, or some type of visualization of the data fromthe returned events. In another example, the final result can includeone or more calculated values derived from the matching events.

The results generated by the data intake and query system 108 can bereturned to a client using different techniques. For example, onetechnique streams results or relevant events back to a client inreal-time as they are identified. Another technique waits to report theresults to the client until a complete set of results (which may includea set of relevant events or a result based on relevant events) is readyto return to the client. Yet another technique streams interim resultsor relevant events back to the client in real-time until a complete setof results is ready, and then returns the complete set of results to theclient. In another technique, certain results are stored as “searchjobs” and the client may retrieve the results by referring the searchjobs.

The search head 210 can also perform various operations to make thesearch more efficient. For example, before the search head 210 beginsexecution of a query, the search head 210 can determine a time range forthe query and a set of common keywords that all matching events include.The search head 210 may then use these parameters to query the indexers206 to obtain a superset of the eventual results. Then, during afiltering stage, the search head 210 can perform field-extractionoperations on the superset to produce a reduced set of search results.Performing field-extraction operations on the superset speeds upqueries, which may be particularly helpful for queries that areperformed on a periodic basis.

2.9. Pipelined Search Language

Various embodiments of the present disclosure can be implemented using,or in conjunction with, a pipelined command language. A pipelinedcommand language is a language in which a set of inputs or data isoperated on by a first command in a sequence of commands, and thensubsequent commands in the order they are arranged in the sequence. Suchcommands can include any type of functionality for operating on data,such as retrieving, searching, filtering, aggregating, processing,transmitting, and the like. As described herein, a query can thus beformulated in a pipelined command language and include any number ofordered or unordered commands for operating on data.

Splunk Processing Language (SPL) is an example of a pipelined commandlanguage in which a set of inputs or data is operated on by any numberof commands in a particular sequence. A sequence of commands, or commandsequence, can be formulated such that the order in which the commandsare arranged defines the order in which the commands are applied to aset of data or the results of an earlier executed command. For example,a first command in a command sequence can operate to search or filterfor specific data in particular set of data. The results of the firstcommand can then be passed to another command listed later in thecommand sequence for further processing.

In various embodiments, a query can be formulated as a command sequencedefined in a command line of a search UI. In some embodiments, a querycan be formulated as a sequence of SPL commands. Some or all of the SPLcommands in the sequence of SPL commands can be separated from oneanother by a pipe symbol “I”. In such embodiments, a set of data, suchas a set of events, can be operated on by a first SPL command in thesequence, and then a subsequent SPL command following a pipe symbol “I”after the first SPL command operates on the results produced by thefirst SPL command or other set of data, and so on for any additional SPLcommands in the sequence. As such, a query formulated using SPLcomprises a series of consecutive commands that are delimited by pipe“I” characters. The pipe character indicates to the data intake andquery system that the output or result of one command (to the left ofthe pipe) should be used as the input for one of the subsequent commands(to the right of the pipe). This enables formulation of queries definedby a pipeline of sequenced commands that refines or enhances the data ateach step along the pipeline until the desired results are attained.Accordingly, various embodiments described herein can be implementedwith Splunk Processing Language (SPL) used in conjunction with theSPLUNK® ENTERPRISE system.

While a query can be formulated in many ways, a query can start with asearch command and one or more corresponding search terms at thebeginning of the pipeline. Such search terms can include any combinationof keywords, phrases, times, dates, Boolean expressions, fieldname-fieldvalue pairs, etc. that specify which results should be obtained from anindex. The results can then be passed as inputs into subsequent commandsin a sequence of commands by using, for example, a pipe character. Thesubsequent commands in a sequence can include directives for additionalprocessing of the results once it has been obtained from one or moreindexes. For example, commands may be used to filter unwantedinformation out of the results, extract more information, evaluate fieldvalues, calculate statistics, reorder the results, create an alert,create summary of the results, or perform some type of aggregationfunction. In some embodiments, the summary can include a graph, a chart,a metric, or other visualization of the data. An aggregation functioncan include analysis or calculations to return an aggregate value, suchas an average value, a sum, a maximum value, a root mean square,statistical values, and the like.

Due to its flexible nature, use of a pipelined command language invarious embodiments is advantageous because it can perform “filtering”as well as “processing” functions. In other words, a single query caninclude a search command and search term expressions, as well asdata-analysis expressions. For example, a command at the beginning of aquery can perform a “filtering” step by retrieving a set of data basedon a condition (e.g., records associated with server response times ofless than 1 microsecond). The results of the filtering step can then bepassed to a subsequent command in the pipeline that performs a“processing” step (e.g. calculation of an aggregate value related to thefiltered events such as the average response time of servers withresponse times of less than 1 microsecond). Furthermore, the searchcommand can allow events to be filtered by keyword as well as fieldvalue criteria. For example, a search command can filter out all eventscontaining the word “warning” or filter out all events where a fieldvalue associated with a field “clientip” is “10.0.1.2.”

The results obtained or generated in response to a command in a querycan be considered a set of results data. The set of results data can bepassed from one command to another in any data format. In oneembodiment, the set of result data can be in the form of a dynamicallycreated table. Each command in a particular query can redefine the shapeof the table. In some implementations, an event retrieved from an indexin response to a query can be considered a row with a column for eachfield value. Columns contain basic information about the data and alsomay contain data that has been dynamically extracted at search time.

FIG. 6B provides a visual representation of the manner in which apipelined command language or query operates in accordance with thedisclosed embodiments. The query 630 can be inputted by the user into asearch. The query 630 comprises a search, the results of which are pipedto two commands (namely, command 1 and command 2) that follow the searchstep.

Disk 622 represents the event data in the raw record data store.

When a user query is processed, a search step will precede other queriesin the pipeline in order to generate a set of events at block 640. Forexample, the query 630 can comprise search terms “sourcetype=syslogERROR” at the front of the pipeline as shown in FIG. 6B. Intermediateresults table 624 shows fewer rows because it represents the subset ofevents retrieved from the index that matched the search terms“sourcetype=syslog ERROR” from search command. By way of furtherexample, instead of a search step, the set of events at the head of thepipeline may be generating by a call to a pre-existing inverted index(as will be explained later).

At block 642, the set of events generated in the first part of the querymay be piped to a query that searches the set of events for field-valuepairs or for keywords. For example, the second intermediate resultstable 626 shows fewer columns, representing the result of the topcommand, “top user” which summarizes the events into a list of the top10 users and displays the user, count, and percentage.

Finally, at block 644, the results of the prior stage can be pipelinedto another stage where further filtering or processing of the data canbe performed, e.g., preparing the data for display purposes, filteringthe data based on a condition, performing a mathematical calculationwith the data, etc. As shown in FIG. 6B, the “fields—percent” part ofquery 630 removes the column that shows the percentage, thereby, leavinga final results table 628 without a percentage column. In differentembodiments, other query languages, such as the Structured QueryLanguage (“SQL”), can be used to create a query 630.

2.10. Field Extraction

The search head 210 allows users to search and visualize eventsgenerated from machine data received from homogenous data sources. Thesearch head 210 also allows users to search and visualize eventsgenerated from machine data received from heterogeneous data sources.The search head 210 includes various mechanisms, which may additionallyreside in an indexer 206, for processing a query. A query language maybe used to create a query, such as any suitable pipelined querylanguage. For example, Splunk Processing Language (SPL) can be utilizedto make a query. SPL is a pipelined search language in which a set ofinputs is operated on by a first command in a command line, and then asubsequent command following the pipe symbol “I” operates on the resultsproduced by the first command, and so on for additional commands. Otherquery languages, such as the Structured Query Language (“SQL”), can beused to create a query.

In response to receiving the search query, search head 210 usesextraction rules to extract values for fields in the events beingsearched. The search head 210 obtains extraction rules that specify howto extract a value for fields from an event. Extraction rules cancomprise regex rules that specify how to extract values for the fieldscorresponding to the extraction rules. In addition to specifying how toextract field values, the extraction rules may also include instructionsfor deriving a field value by performing a function on a characterstring or value retrieved by the extraction rule. For example, anextraction rule may truncate a character string or convert the characterstring into a different data format. In some cases, the query itself canspecify one or more extraction rules.

The search head 210 can apply the extraction rules to events that itreceives from indexers 206. Indexers 206 may apply the extraction rulesto events in an associated data store 208. Extraction rules can beapplied to all the events in a data store 208 or to a subset of theevents that have been filtered based on some criteria (e.g., event timestamp values, etc.). Extraction rules can be used to extract one or morevalues for a field from events by parsing the portions of machine datain the events and examining the data for one or more patterns ofcharacters, numbers, delimiters, etc., that indicate where the fieldbegins and, optionally, ends.

FIG. 7A is a diagram of an example scenario where a common customeridentifier is found among log data received from three disparate datasources, in accordance with example embodiments. In this example, a usersubmits an order for merchandise using a vendor's shopping applicationprogram (e.g., order app 701) running on the user's system. In thisexample, the order was not delivered to the vendor's server due to aresource exception at the destination server that is detected by themiddleware code (e.g., middleware 702). The user then sends a message tothe customer support server (e.g., support server 703) to complain aboutthe order failing to complete. The three systems 701, 702, and 703 aredisparate systems that do not have a common logging format. The orderapp 701 sends log data 704 to the data intake and query system 108 inone format, the middleware code 702 sends error log data 705 in a secondformat, and the support server 703 sends log data 706 in a third format.

Using the log data received at one or more indexers 206 from the threesystems 701, 702, 703, the vendor can uniquely obtain an insight intouser activity, user experience, and system behavior. The search head 210allows the vendor's administrator to search the log data from the threesystems 701, 702, 703 that one or more indexers 206 are responsible forsearching, thereby obtaining correlated information, such as the ordernumber and corresponding customer ID number of the person placing theorder. The data intake and query system 108 also allows theadministrator to see a visualization of related events via a userinterface (UI). The administrator can query the search head 210 forcustomer ID field value matches across the log data from the threesystems 701, 702, 703 that are stored at the one or more indexers 206.The customer ID field value exists in the data gathered from the threesystems 701, 702, 703, but the customer ID field value may be located indifferent areas of the data given differences in the architecture of thesystems 701, 702, 703. There is a semantic relationship between thecustomer ID field values generated by the three systems 701, 702, 703.The search head 210 requests events from the one or more indexers 206 togather relevant events from the three systems 701, 702, 703. The searchhead 210 then applies extraction rules to the events in order to extractfield values that it can correlate. The search head 210 may apply adifferent extraction rule to each set of events from each system whenthe event format differs among systems. In this example, the UI candisplay to the administrator the events corresponding to the commoncustomer ID field values 707, 708, and 709, thereby providing theadministrator with insight into a customer's experience.

Note that query results can be returned to a client, a search head 210,or any other system component for further processing. In general, queryresults may include a set of one or more events, a set of one or morevalues obtained from the events, a subset of the values, statisticscalculated based on the values, a report containing the values, avisualization (e.g., a graph or chart) generated from the values, andthe like.

The search system enables users to run queries against the stored datato retrieve events that meet criteria specified in a query, such ascontaining certain keywords or having specific values in defined fields.FIG. 7B illustrates the manner in which keyword searches and fieldsearches are processed in accordance with disclosed embodiments.

If a user inputs a search query into a search bar 710 that includes onlykeywords (also known as “tokens”), e.g., the keyword “error” or“warning”, the query search engine of the data intake and query system108 searches for those keywords directly in the event data 711 stored inthe raw record data store. Note that while FIG. 7B only illustrates fourevents 712, 713, 714, 715, the raw record data store (corresponding todata store 208 in FIG. 2 ) may contain records for millions of events.

As disclosed above, an indexer 206 can optionally generate a keywordindex to facilitate fast keyword searching for event data. The indexer206 includes the identified keywords in an index, which associates eachstored keyword with reference pointers to events containing that keyword(or to locations within events where that keyword is located, otherlocation identifiers, etc.). When an indexer 206 subsequently receives akeyword-based query, the indexer 206 can access the keyword index toquickly identify events containing the keyword. For example, if thekeyword “HTTP” was indexed by the indexer 206 at index time, and theuser searches for the keyword “HTTP”, the events 712, 713, and 714, willbe identified based on the results returned from the keyword index. Asnoted above, the index contains reference pointers to the eventscontaining the keyword, which allows for efficient retrieval of therelevant events from the raw record data store.

If a user searches for a keyword that has not been indexed by theindexer 206, the data intake and query system 108 would nevertheless beable to retrieve the events by searching the event data for the keywordin the raw record data store directly as shown in FIG. 7B. For example,if a user searches for the keyword “frank”, and the name “frank” has notbeen indexed at index time, the data intake and query system 108 willsearch the event data directly and return the first event 712. Note thatwhether the keyword has been indexed at index time or not, in both casesthe raw data of the events 712-715 is accessed from the raw data recordstore to service the keyword search. In the case where the keyword hasbeen indexed, the index will contain a reference pointer that will allowfor a more efficient retrieval of the event data from the data store. Ifthe keyword has not been indexed, the search engine will need to searchthrough all the records in the data store to service the search.

In most cases, however, in addition to keywords, a user's search willalso include fields. The term “field” refers to a location in the eventdata containing one or more values for a specific data item. Often, afield is a value with a fixed, delimited position on a line, or a nameand value pair, where there is a single value to each field name. Afield can also be multivalued, that is, it can appear more than once inan event and have a different value for each appearance, e.g., emailaddress fields. Fields are searchable by the field name or fieldname-value pairs. Some examples of fields are “clientip” for IPaddresses accessing a web server, or the “From” and “To” fields in emailaddresses.

By way of further example, consider the search, “status=404”. Thissearch query finds events with “status” fields that have a value of“404.” When the search is run, the search engine does not look forevents with any other “status” value. It also does not look for eventscontaining other fields that share “404” as a value. As a result, thesearch returns a set of results that are more focused than if “404” hadbeen used in the search string as part of a keyword search. Note alsothat fields can appear in events as “key=value” pairs such as“user_name=Bob.” But in most cases, field values appear in fixed,delimited positions without identifying keys. For example, the datastore may contain events where the “user_name” value always appears byitself after the timestamp as illustrated by the following string: “Nov15 09:33:22 johnmedlock.”

The data intake and query system 108 advantageously allows for searchtime field extraction. In other words, fields can be extracted from theevent data at search time using late-binding schema as opposed to atdata ingestion time, which was a major limitation of the prior artsystems.

In response to receiving the search query, search head 210 usesextraction rules to extract values for the fields associated with afield or fields in the event data being searched. The search head 210obtains extraction rules that specify how to extract a value for certainfields from an event. Extraction rules can comprise regex rules thatspecify how to extract values for the relevant fields. In addition tospecifying how to extract field values, the extraction rules may alsoinclude instructions for deriving a field value by performing a functionon a character string or value retrieved by the extraction rule. Forexample, a transformation rule may truncate a character string, orconvert the character string into a different data format. In somecases, the query itself can specify one or more extraction rules.

FIG. 7B illustrates the manner in which configuration files may be usedto configure custom fields at search time in accordance with thedisclosed embodiments. In response to receiving a search query, the dataintake and query system 108 determines if the query references a“field.” For example, a query may request a list of events where the“clientip” field equals “127.0.0.1.” If the query itself does notspecify an extraction rule and if the field is not a metadata field,e.g., time, host, source, source type, etc., then in order to determinean extraction rule, the search engine may, in one or more embodiments,need to locate configuration file 716 during the execution of the searchas shown in FIG. 7B.

Configuration file 716 may contain extraction rules for all the variousfields that are not metadata fields, e.g., the “clientip” field. Theextraction rules may be inserted into the configuration file in avariety of ways. In some embodiments, the extraction rules can compriseregular expression rules that are manually entered in by the user.Regular expressions match patterns of characters in text and are usedfor extracting custom fields in text.

In one or more embodiments, as noted above, a field extractor may beconfigured to automatically generate extraction rules for certain fieldvalues in the events when the events are being created, indexed, orstored, or possibly at a later time. In one embodiment, a user may beable to dynamically create custom fields by highlighting portions of asample event that should be extracted as fields using a graphical userinterface (GUI). The data intake and query system 108 would thengenerate a regular expression that extracts those fields from similarevents and store the regular expression as an extraction rule for theassociated field in the configuration file 716.

In some embodiments, the indexers 206 may automatically discover certaincustom fields at index time and the regular expressions for those fieldswill be automatically generated at index time and stored as part ofextraction rules in configuration file 716. For example, fields thatappear in the event data as “key=value” pairs may be automaticallyextracted as part of an automatic field discovery process. Note thatthere may be several other ways of adding field definitions toconfiguration files in addition to the methods discussed herein.

The search head 210 can apply the extraction rules derived fromconfiguration file 716 to event data that it receives from indexers 206.Indexers 206 may apply the extraction rules from the configuration file716 to events in an associated data store 208. Extraction rules can beapplied to all the events in a data store, or to a subset of the eventsthat have been filtered based on some criteria (e.g., event time stampvalues, etc.). Extraction rules can be used to extract one or morevalues for a field from events by parsing the event data and examiningthe event data for one or more patterns of characters, numbers,delimiters, etc., that indicate where the field begins and, optionally,ends.

In one or more embodiments, the extraction rule in the configurationfile 716 will also need to define the type or set of events that theextraction rule applies to. Because the raw record data store willcontain events from multiple heterogeneous sources, multiple events maycontain the same fields in different locations because of discrepanciesin the format of the data generated by the various sources. Furthermore,certain events may not contain a particular field at all. For example,event 715 also contains a “clientip” field, however, the “clientip”field is in a different format from the events 712, 713, and 714. Toaddress the discrepancies in the format and content of the differenttypes of events, the configuration file 716 will also need to specifythe set of events that an extraction rule 717 applies to, e.g.,extraction rule 717 specifies a rule for filtering by the type of eventand contains a regular expression for parsing out the field value.Accordingly, each extraction rule 717 will pertain to only a particulartype of event. If a particular field, e.g., “clientip”, occurs inmultiple events, each of those types of events would need its owncorresponding extraction rule 717 in the configuration file 716 and eachof the extraction rules 717 would comprise a different regularexpression to parse out the associated field value. The most common wayto categorize events is by source type because events generated by aparticular source can have the same format.

The field extraction rules 717 stored in configuration file 716 performsearch-time field extractions. For example, for a query that requests alist of events with source type “access_combined” where the “clientip”field equals “127.0.0.1,” the query search engine would first locate theconfiguration file 716 to retrieve extraction rule 717 that would allowit to extract values associated with the “clientip” field from the eventdata where the source type is “access_combined. After the “clientip”field has been extracted from all the events comprising the “clientip”field where the source type is “access_combined,” the query searchengine can then execute the field criteria by performing the compareoperation to filter out the events where the “clientip” field equals“127.0.0.1.” In the example shown in FIG. 7B, the events 712, 713, and714 would be returned in response to the user query. In this manner, thesearch engine can service queries containing field criteria in additionto queries containing keyword criteria (as explained above).

The configuration file 716 can be created during indexing. It may eitherbe manually created by the user or automatically generated with certainpredetermined field extraction rules 717. As discussed above, the eventsmay be distributed across several indexers 206, wherein each indexer 206may be responsible for storing and searching a subset of the eventscontained in a corresponding data store. In a distributed indexersystem, each indexer 206 would need to maintain a local copy of theconfiguration file 716 that is synchronized periodically across thevarious indexers 206.

The ability to add schema to the configuration file 716 at search timeresults in increased efficiency. A user can create new fields at searchtime and simply add field definitions to the configuration file 716. Asa user learns more about the data in the events, the user can continueto refine the late-binding schema by adding new fields, deleting fields,or modifying the field extraction rules in the configuration file 716for use the next time the schema is used by the system. Because the dataintake and query system 108 maintains the underlying raw data and useslate-binding schema for searching the raw data, it enables a user tocontinue investigating and learn valuable insights about the raw datalong after data ingestion time.

The ability to add multiple field definitions to the configuration file716 at search time also results in increased flexibility. For example,multiple field definitions can be added to the configuration file 716 tocapture the same field across events generated by different sourcetypes. This allows the data intake and query system 108 to search andcorrelate data across heterogeneous sources flexibly and efficiently.

Further, by providing the field definitions for the queried fields atsearch time, the configuration file 716 allows the record data store tobe field searchable. In other words, the raw record data store can besearched using keywords as well as fields, wherein the fields aresearchable name/value pairings that distinguish one event from anotherand can be defined in configuration file 716 using extraction rules 717.In comparison to a search containing field names, a keyword search doesnot need the configuration file 716 and can search the event datadirectly as shown in FIG. 7B.

It should also be noted that any events filtered out by performing asearch-time field extraction using a configuration file 716 can befurther processed by directing the results of the filtering step to aprocessing step using a pipelined search language. Using the priorexample, a user could pipeline the results of the compare step to anaggregate function by asking the query search engine to count the numberof events where the “clientip” field equals “127.0.0.1.”

2.11. Example Search Screen

FIG. 8A is an interface diagram of an example UI for a search screen800, in accordance with example embodiments. Search screen 800 includesa search bar 802 that accepts user input in the form of a search string.It also includes a time range picker 812 that enables the user tospecify a time range for the search. For historical searches (e.g.,searches based on a particular historical time range), the user canselect a specific time range, or alternatively a relative time range,such as “today,” “yesterday” or “last week.” For real-time searches(e.g., searches whose results are based on data received in real-time),the user can select the size of a preceding time window to search forreal-time events. Search screen 800 also initially displays a “datasummary” dialog as is illustrated in FIG. 8B that enables the user toselect different sources for the events, such as by selecting specifichosts and log files.

After the search is executed, the search screen 800 in FIG. 8A candisplay the results through search results tabs 804, wherein searchresults tabs 804 includes: an “events tab” that displays variousinformation about events returned by the search; a “statistics tab” thatdisplays statistics about the search results; and a “visualization tab”that displays various visualizations of the search results. The eventstab illustrated in FIG. 8A displays a timeline 805 that graphicallyillustrates the number of events that occurred in one-hour intervalsover the selected time range. The events tab also displays an eventslist 808 that enables a user to view the machine data in each of thereturned events.

The events tab additionally displays a sidebar that is an interactivefield picker 806. The interactive field picker 806 may be displayed to auser in response to the search being executed and allows the user tofurther analyze the search results based on the fields in the events ofthe search results. The interactive field picker 806 includes fieldnames that reference fields present in the events in the search results.The interactive field picker 806 may display any Selected Fields that auser has pre-selected for display (e.g., host, source, sourcetype) andmay also display any Interesting Fields that the data intake and querysystem 108 determines may be interesting to the user based onpre-specified criteria (e.g., action, bytes, categoryid, clientip,date_hour, date_mday, date_minute, etc.). The interactive field picker806 also provides an option to display field names for all the fieldspresent in the events of the search results using the All Fieldscontrol.

Each field name in the interactive field picker 806 has a value typeidentifier to the left of the field name, such as value type identifier.A value type identifier identifies the type of value for the respectivefield, such as an “a” for fields that include literal values or a “#”for fields that include numerical values.

Each field name in the interactive field picker 806 also has a uniquevalue count to the right of the field name, such as unique value count.The unique value count indicates the number of unique values for therespective field in the events of the search results.

Each field name is selectable to view the events in the search resultsthat have the field referenced by that field name. For example, a usercan select the “host” field name, and the events shown in the eventslist 808 will be updated with events in the search results that have thefield that is reference by the field name “host.”

2.12. Data Models

A data model is a hierarchically structured search-time mapping ofsemantic knowledge about one or more datasets. It encodes the domainknowledge used to build a variety of specialized searches of thosedatasets. Those searches, in turn, can be used to generate reports.

A data model is composed of one or more “objects” (or “data modelobjects”) that define or otherwise correspond to a specific set of data.An object is defined by constraints and attributes. An object'sconstraints are search criteria that define the set of events to beoperated on by running a search having that search criteria at the timethe data model is selected. An object's attributes are the set of fieldsto be exposed for operating on that set of events generated by thesearch criteria.

Objects in data models can be arranged hierarchically in parent/childrelationships. Each child object represents a subset of the datasetcovered by its parent object. The top-level objects in data models arecollectively referred to as “root objects.”

Child objects have inheritance. Child objects inherit constraints andattributes from their parent objects and may have additional constraintsand attributes of their own. Child objects provide a way of filteringevents from parent objects. Because a child object may provide anadditional constraint in addition to the constraints it has inheritedfrom its parent object, the dataset it represents may be a subset of thedataset that its parent represents. For example, a first data modelobject may define a broad set of data pertaining to e-mail activitygenerally, and another data model object may define specific datasetswithin the broad dataset, such as a subset of the e-mail data pertainingspecifically to e-mails sent. For example, a user can simply select an“e-mail activity” data model object to access a dataset relating toe-mails generally (e.g., sent or received), or select an “e-mails sent”data model object (or data sub-model object) to access a datasetrelating to e-mails sent.

Because a data model object is defined by its constraints (e.g., a setof search criteria) and attributes (e.g., a set of fields), a data modelobject can be used to quickly search data to identify a set of eventsand to identify a set of fields to be associated with the set of events.For example, an “e-mails sent” data model object may specify a searchfor events relating to e-mails that have been sent and specify a set offields that are associated with the events. Thus, a user can retrieveand use the “e-mails sent” data model object to quickly search sourcedata for events relating to sent e-mails, and may be provided with alisting of the set of fields relevant to the events in a UI screen.

Examples of data models can include electronic mail, authentication,databases, intrusion detection, malware, application state, alerts,compute inventory, network sessions, network traffic, performance,audits, updates, vulnerabilities, etc. Data models and their objects canbe designed by knowledge managers in an organization, and they canenable downstream users to quickly focus on a specific set of data. Auser iteratively applies a model development tool (not shown in FIG. 8A)to prepare a query that defines a subset of events and assigns an objectname to that subset. A child subset is created by further limiting aquery that generated a parent subset.

Data definitions in associated schemas can be taken from the commoninformation model (CIM) or can be devised for a particular schema andoptionally added to the CIM. Child objects inherit fields from parentsand can include fields that are not present in parents. A modeldeveloper can select fewer extraction rules than are available for thesources returned by the query that defines events belonging to a model.Selecting a limited set of extraction rules can be a tool forsimplifying and focusing the data model, while allowing a userflexibility to explore the data subset. Development of a data model isfurther explained in U.S. Pat. Nos. 8,788,525 and 8,788,526, bothentitled “DATA MODEL FOR MACHINE DATA FOR SEMANTIC SEARCH”, both issuedon 22 Jul. 2014, U.S. Pat. No. 8,983,994, entitled “GENERATION OF A DATAMODEL FOR SEARCHING MACHINE DATA”, issued on 17 Mar. 2015, U.S. Pat. No.9,128,980, entitled “GENERATION OF A DATA MODEL APPLIED TO QUERIES”,issued on 8 Sep. 2015, and U.S. Pat. No. 9,589,012, entitled “GENERATIONOF A DATA MODEL APPLIED TO OBJECT QUERIES”, issued on 7 Mar. 2017, eachof which is hereby incorporated by reference in its entirety for allpurposes.

A data model can also include reports. One or more report formats can beassociated with a particular data model and be made available to runagainst the data model. A user can use child objects to design reportswith object datasets that already have extraneous data pre-filtered out.In some embodiments, the data intake and query system 108 provides theuser with the ability to produce reports (e.g., a table, chart,visualization, etc.) without having to enter SPL, SQL, or other querylanguage terms into a search screen. Data models are used as the basisfor the search feature.

Data models may be selected in a report generation interface. The reportgenerator supports drag-and-drop organization of fields to be summarizedin a report. When a model is selected, the fields with availableextraction rules are made available for use in the report. The user mayrefine and/or filter search results to produce more precise reports. Theuser may select some fields for organizing the report and select otherfields for providing detail according to the report organization. Forexample, “region” and “salesperson” are fields used for organizing thereport and sales data can be summarized (subtotaled and totaled) withinthis organization. The report generator allows the user to specify oneor more fields within events and apply statistical analysis on valuesextracted from the specified one or more fields. The report generatormay aggregate search results across sets of events and generatestatistics based on aggregated search results. Building reports usingthe report generation interface is further explained in U.S. patentapplication Ser. No. 14/503,335, entitled “GENERATING REPORTS FROMUNSTRUCTURED DATA”, filed on 30 Sep. 2014, and which is herebyincorporated by reference in its entirety for all purposes. Datavisualizations also can be generated in a variety of formats, byreference to the data model. Reports, data visualizations, and datamodel objects can be saved and associated with the data model for futureuse. The data model object may be used to perform searches of otherdata.

FIGS. 9-15 are interface diagrams of example report generation UIs, inaccordance with example embodiments. The report generation process maybe driven by a predefined data model object, such as a data model objectdefined and/or saved via a reporting application or a data model objectobtained from another source. A user can load a saved data model objectusing a report editor. For example, the initial search query and fieldsused to drive the report editor may be obtained from a data modelobject. The data model object that is used to drive a report generationprocess may define a search and a set of fields. Upon loading of thedata model object, the report generation process may enable a user touse the fields (e.g., the fields defined by the data model object) todefine criteria for a report (e.g., filters, split rows/columns,aggregates, etc.) and the search may be used to identify events (e.g.,to identify events responsive to the search) used to generate thereport. That is, for example, if a data model object is selected todrive a report editor, the GUI of the report editor may enable a user todefine reporting criteria for the report using the fields associatedwith the selected data model object, and the events used to generate thereport may be constrained to the events that match, or otherwisesatisfy, the search constraints of the selected data model object.

The selection of a data model object for use in driving a reportgeneration may be facilitated by a data model object selectioninterface. FIG. 9 illustrates an example interactive data modelselection GUI 900 of a report editor that displays a listing ofavailable data models 901. The user may select one of the data models902.

FIG. 10 illustrates an example data model object selection GUI 1000 thatdisplays available data objects 1001 for the selected data object model902. The user may select one of the displayed data model objects 1002for use in driving the report generation process.

2.13. Acceleration Technique

The above-described system provides significant flexibility by enablinga user to analyze massive quantities of minimally-processed data “on thefly” at search time using a late-binding schema, instead of storingpre-specified portions of the data in a database at ingestion time. Thisflexibility enables a user to see valuable insights, correlate data, andperform subsequent queries to examine interesting aspects of the datathat may not have been apparent at ingestion time.

However, performing extraction and analysis operations at search timecan involve a large amount of data and require a large number ofcomputational operations, which can cause delays in processing thequeries. Advantageously, the data intake and query system 108 alsoemploys a number of unique acceleration techniques that have beendeveloped to speed up analysis operations performed at search time.These techniques include: (1) performing search operations in parallelacross multiple indexers; (2) using a keyword index; (3) using a highperformance analytics store; and (4) accelerating the process ofgenerating reports. These novel techniques are described in more detailbelow.

2.13.1. Aggregation Technique

To facilitate faster query processing, a query can be structured suchthat multiple indexers 206 perform the query in parallel, whileaggregation of search results from the multiple indexers 206 isperformed locally at the search head 210. For example, FIG. 11 is anexample search query received from a client and executed by searchpeers, in accordance with example embodiments. FIG. 11 illustrates how asearch query 1102 received from a client at a search head 210 can splitinto two phases, including: (1) subtasks 1104 (e.g., data retrieval orsimple filtering) that may be performed in parallel by indexers 206 forexecution, and (2) a search results aggregation operation 1106 to beexecuted by the search head 210 when the results are ultimatelycollected from the indexers 206.

During operation, upon receiving search query 1102, a search head 210determines that a portion of the operations involved with the searchquery 1102 may be performed locally by the search head 210. The searchhead 210 modifies search query 1102 by substituting “stats” (createaggregate statistics over results sets received from the indexers at thesearch head) with “prestats” (create statistics by the indexer fromlocal results set) to produce search query 1102, and then distributessearch query 1102 to distributed indexers, which are also referred to as“search peers” or “peer indexers.” Note that search queries maygenerally specify search criteria or operations to be performed onevents that meet the search criteria. Search queries may also specifyfield names, as well as search criteria for the values in the fields oroperations to be performed on the values in the fields. Moreover, thesearch head 210 may distribute the full search query 1102 to the searchpeers as illustrated in FIG. 6A, or may alternatively distribute amodified version (e.g., a more restricted version) of the search query1102 to the search peers. In this example, the indexers 206 areresponsible for producing the results and sending them to the searchhead 210. After the indexers 206 return the results to the search head210, the search head 210 aggregates the received results at the searchresults aggregation operation 1106 to form a single search result set.By executing the query in this manner, the system effectivelydistributes the computational operations across the indexers 206 whileminimizing data transfers.

2.13.2. Keyword Index

As described above with reference to the flow charts in FIG. 5A and FIG.6A, the data intake and query system 108 can construct and maintain oneor more keyword indices to quickly identify events containing specifickeywords. This technique can greatly speed up the processing of queriesinvolving specific keywords. As mentioned above, to build a keywordindex, an indexer 206 first identifies a set of keywords. Then, theindexer 206 includes the identified keywords in an index, whichassociates each stored keyword with references to events containing thatkeyword, or to locations within events where that keyword is located.When an indexer 206 subsequently receives a keyword-based query, theindexer 206 can access the keyword index to quickly identify eventscontaining the keyword.

2.13.3. High Performance Analytics Store

To speed up certain types of queries, some embodiments of the dataintake and query system 108 create a high performance analytics store,which is referred to as a “summarization table,” that contains entriesfor specific field-value pairs. Each of these entries keeps track ofinstances of a specific value in a specific field in the events andincludes references to events containing the specific value in thespecific field. For example, an example entry in a summarization tablecan keep track of occurrences of the value “94107” in a “ZIP code” fieldof a set of events and the entry includes references to all of theevents that contain the value “94107” in the ZIP code field. Thisoptimization technique enables the data intake and query system 108 toquickly process queries that seek to determine how many events have aparticular value for a particular field. To this end, the data intakeand query system 108 can examine the entry in the summarization table tocount instances of the specific value in the field without having to gothrough the individual events or perform data extractions at searchtime. Also, if the data intake and query system 108 needs to process allevents that have a specific field-value combination, the data intake andquery system 108 can use the references in the summarization table entryto directly access the events to extract further information withouthaving to search all of the events to find the specific field-valuecombination at search time.

In some embodiments, the data intake and query system 108 maintains aseparate summarization table for each of the above-describedtime-specific buckets that stores events for a specific time range. Abucket-specific summarization table includes entries for specificfield-value combinations that occur in events in the specific bucket.Alternatively, the data intake and query system 108 can maintain aseparate summarization table for each indexer 206. The indexer-specificsummarization table includes entries for the events in a data store 208that are managed by the specific indexer 206. Indexer-specificsummarization tables may also be bucket-specific.

The summarization table can be populated by running a periodic querythat scans a set of events to find instances of a specific field-valuecombination, or alternatively instances of all field-value combinationsfor a specific field. A periodic query can be initiated by a user or canbe scheduled to occur automatically at specific time intervals. Aperiodic query can also be automatically launched in response to a querythat asks for a specific field-value combination.

In some cases, when the summarization tables may not cover all of theevents that are relevant to a query, the data intake and query system108 can use the summarization tables to obtain partial results for theevents that are covered by summarization tables, but may also have tosearch through other events that are not covered by the summarizationtables to produce additional results. These additional results can thenbe combined with the partial results to produce a final set of resultsfor the query. The summarization table and associated techniques aredescribed in more detail in U.S. Pat. No. 8,682,925, entitled“DISTRIBUTED HIGH PERFORMANCE ANALYTICS STORE”, issued on 25 Mar. 2014,U.S. Pat. No. 9,128,985, entitled “SUPPLEMENTING A HIGH PERFORMANCEANALYTICS STORE WITH EVALUATION OF INDIVIDUAL EVENTS TO RESPOND TO ANEVENT QUERY”, issued on 8 Sep. 2015, and U.S. patent application Ser.No. 14/815,973, entitled “GENERATING AND STORING SUMMARIZATION TABLESFOR SETS OF SEARCHABLE EVENTS”, filed on 1 Aug. 2015, each of which ishereby incorporated by reference in its entirety for all purposes.

To speed up certain types of queries, e.g., frequently encounteredqueries or computationally intensive queries, some embodiments of thedata intake and query system 108 create a high performance analyticsstore, which is referred to as a “summarization table,” (also referredto as a “lexicon” or “inverted index”) that contains entries forspecific field-value pairs. Each of these entries keeps track ofinstances of a specific value in a specific field in the event data andincludes references to events containing the specific value in thespecific field. For example, an example entry in an inverted index 507Bcan keep track of occurrences of the value “94107” in a “ZIP code” fieldof a set of events and the entry includes references to all of theevents that contain the value “94107” in the ZIP code field. Creatingthe inverted index data structure avoids needing to incur thecomputational overhead each time a statistical query needs to be run ona frequently encountered field-value pair. In order to expedite queries,in most embodiments, the search engine will employ the inverted index507B separate from the raw record data store to generate responses tothe received queries.

Note that the term “summarization table” or “inverted index” as usedherein is a data structure that may be generated by an indexer 206 thatincludes at least field names and field values that have been extractedand/or indexed from event records. An inverted index 507B may alsoinclude reference values that point to the location(s) in the fieldsearchable data store where the event records that include the field maybe found. Also, an inverted index 507B may be stored using well-knowncompression techniques to reduce its storage size.

Further, note that the term “reference value” (also referred to as a“posting value”) as used herein is a value that references the locationof a source record in the field searchable data store. In someembodiments, the reference value may include additional informationabout each record, such as timestamps, record size, meta-data, or thelike. Each reference value may be a unique identifier which may be usedto access the event data directly in the field searchable data store. Insome embodiments, the reference values may be ordered based on eachevent record's timestamp. For example, if numbers are used asidentifiers, they may be sorted so event records having a latertimestamp always have a lower valued identifier than event records withan earlier timestamp, or vice-versa. Reference values are often includedin inverted indexes for retrieving and/or identifying event records.

In one or more embodiments, an inverted index 507B is generated inresponse to a user-initiated collection query. The term “collectionquery” as used herein refers to queries that include commands thatgenerate summarization information and inverted indexes (orsummarization tables) from event records stored in the field searchabledata store.

Note that a collection query is a special type of query that can beuser-generated and is used to create an inverted index 507B. Acollection query is not the same as a query that is used to call up orinvoke a pre-existing inverted index. In one or more embodiments, aquery can comprise an initial step that calls up a pre-generatedinverted index on which further filtering and processing can beperformed. For example, referring back to FIG. 6B, a set of events canbe generated at block 640 by either using a “collection” query to createa new inverted index or by calling up a pre-generated inverted index. Aquery with several pipelined steps will start with a pre-generated indexto accelerate the query.

FIG. 7C illustrates the manner in which an inverted index is created andused in accordance with the disclosed embodiments. As shown in FIG. 7C,an inverted index 722 can be created in response to a user-initiatedcollection query using the event data 723 stored in the raw record datastore. For example, a non-limiting example of a collection query mayinclude “collect clientip=127.0.0.1” which may result in an invertedindex 722 being generated from the event data 723 as shown in FIG. 7C.Each entry in inverted index 722 includes an event reference value thatreferences the location of a source record in the field searchable datastore. The reference value may be used to access the original eventrecord directly from the field searchable data store.

In one or more embodiments, if one or more of the queries is acollection query, the responsive indexers may generate summarizationinformation based on the fields of the event records located in thefield searchable data store. In at least one of the various embodiments,one or more of the fields used in the summarization information may belisted in the collection query and/or they may be determined based onterms included in the collection query. For example, a collection querymay include an explicit list of fields to summarize. Or, in at least oneof the various embodiments, a collection query may include terms orexpressions that explicitly define the fields, e.g., using regex rules.In FIG. 7C, prior to running the collection query that generates theinverted index 722, the field name “clientip” may need to be defined ina configuration file 716 by specifying the “access_combined” source typeand a regular expression rule to parse out the client IP address.Alternatively, the collection query may contain an explicit definitionfor the field name “clientip” which may obviate the need to referencethe configuration file 716 at search time.

In one or more embodiments, collection queries may be saved andscheduled to run periodically. These scheduled collection queries mayperiodically update the summarization information corresponding to thequery. For example, if the collection query that generates invertedindex 722 is scheduled to run periodically, one or more indexers 206would periodically search through the relevant buckets to updateinverted index 722 with event data 723 for any new events with the“clientip” value of “127.0.0.1.”

In some embodiments, the inverted indexes that include fields, values,and reference value (e.g., inverted index 722) for event records may beincluded in the summarization information provided to the user. In otherembodiments, a user may not be interested in specific fields and valuescontained in the inverted index 722 but may need to perform astatistical query on the data in the inverted index 722. For example,referencing the example of FIG. 7C rather than viewing the fields withinsummarization table, a user may want to generate a count of all clientrequests from IP address “127.0.0.1.” In this case, the search enginewould simply return a result of “4” rather than including details aboutthe inverted index 722 in the information provided to the user.

The pipelined search language, e.g., SPL of the SPLUNK® ENTERPRISEsystem can be used to pipe the contents of an inverted index to astatistical query using the “stats” command for example. A “stats” queryrefers to queries that generate result sets that may produce aggregateand statistical results from event records, e.g., average, mean, max,min, rms, etc. Where sufficient information is available in an invertedindex 722, a “stats” query may generate their result sets rapidly fromthe summarization information available in the inverted index 722 ratherthan directly scanning event records. For example, the contents ofinverted index 722 can be pipelined to a stats query, e.g., a “count”function that counts the number of entries in the inverted index 722 andreturns a value of “4.” In this way, inverted indexes may enable variousstats queries to be performed absent scanning or search the eventrecords. Accordingly, this optimization technique enables the system toquickly process queries that seek to determine how many events have aparticular value for a particular field. To this end, the data intakeand query system 108 can examine the entry in the inverted index 722 tocount instances of the specific value in the field without having to gothrough the individual events or perform data extractions at searchtime.

In some embodiments, the data intake and query system 108 maintains aseparate inverted index for each of the above-described time-specificbuckets that stores events for a specific time range. A bucket-specificinverted index includes entries for specific field-value combinationsthat occur in events in the specific bucket. Alternatively, the dataintake and query system 108 can maintain a separate inverted index foreach indexer 206. The indexer-specific inverted index includes entriesfor the events in a data store 208 that are managed by the specificindexer. Indexer-specific inverted indexes may also be bucket-specific.In at least one or more embodiments, if one or more of the queries is astats query, each indexer 206 may generate a partial result set frompreviously generated summarization information. The partial result setsmay be returned to the search head 210 that received the query andcombined into a single result set for the query

As mentioned above, the inverted index 722 can be populated by running aperiodic query that scans a set of events to find instances of aspecific field-value combination, or alternatively instances of allfield-value combinations for a specific field. A periodic query can beinitiated by a user or can be scheduled to occur automatically atspecific time intervals. A periodic query can also be automaticallylaunched in response to a query that asks for a specific field-valuecombination. In some embodiments, if summarization information is absentfrom an indexer 206 that includes responsive event records, furtheractions may be taken, such as, the summarization information may begenerated on the fly, warnings may be provided the user, the collectionquery operation may be halted, the absence of summarization informationmay be ignored, or the like, or combination thereof.

In one or more embodiments, an inverted index 722 may be set up toupdate continually. For example, the query may ask for the invertedindex 722 to update its result periodically, e.g., every hour. In suchinstances, the inverted index 722 may be a dynamic data structure thatis regularly updated to include information regarding incoming events.

In some cases, e.g., where a query is executed before an inverted indexupdates, when the inverted index 722 may not cover all of the eventsthat are relevant to a query, the data intake and query system 108 canuse the inverted index 722 to obtain partial results for the events thatare covered by inverted index 722, but may also have to search throughother events that are not covered by the inverted index 722 to produceadditional results on the fly. In other words, an indexer 206 would needto search through event data 723 on the data store 208 to supplement thepartial results. These additional results can then be combined with thepartial results to produce a final set of results for the query. Notethat in typical instances where an inverted index is not completely upto date, the number of events that an indexer 206 would need to searchthrough to supplement the results from the inverted index 722 would berelatively small. In other words, the search to get the most recentresults can be quick and efficient because only a small number of eventrecords will be searched through to supplement the information from theinverted index 722. The inverted index and associated techniques aredescribed in more detail in U.S. Pat. No. 8,682,925, entitled“DISTRIBUTED HIGH PERFORMANCE ANALYTICS STORE”, issued on 25 Mar. 2014,U.S. Pat. No. 9,128,985, entitled “SUPPLEMENTING A HIGH PERFORMANCEANALYTICS STORE WITH EVALUATION OF INDIVIDUAL EVENTS TO RESPOND TO ANEVENT QUERY”, filed on 31 Jan. 2014, and U.S. patent application Ser.No. 14/815,973, entitled “STORAGE MEDIUM AND CONTROL DEVICE”, filed on21 Feb. 2014, each of which is hereby incorporated by reference in itsentirety.

2.13.3.1. Extracting Event Data Using Posting

In one or more embodiments, if the system needs to process all eventsthat have a specific field-value combination, the system can use thereferences in the inverted index 722 entry to directly access the eventsto extract further information without having to search all of theevents to find the specific field-value combination at search time. Inother words, the data intake and query system 108 can use the referencevalues to locate the associated event data in the field searchable datastore and extract further information from those events, e.g., extractfurther field values from the events for purposes of filtering orprocessing or both.

The information extracted from the event data 723 using the referencevalues can be directed for further filtering or processing in a queryusing the pipeline search language. The pipelined search language will,in one embodiment, include syntax that can direct the initial filteringstep in a query to an inverted index 722. In one embodiment, a userwould include syntax in the query that explicitly directs the initialsearching or filtering step to the inverted index 722.

Referencing the example in FIG. 7C, if the user determines that sheneeds the user id fields associated with the client requests from IPaddress “127.0.0.1,” instead of incurring the computational overhead ofperforming a brand new search or re-generating the inverted index 722with an additional field, the user can generate a query that explicitlydirects or pipes the contents of the already generated inverted index722 to another filtering step requesting the user ids for the entries ininverted index 722 where the server response time is greater than“0.0900” microseconds. The search engine would use the reference valuesstored in inverted index 722 to retrieve the event data 723 from thefield searchable data store, filter the results based on the “responsetime” field values and, further, extract the user id field from theresulting event data 723 to return to the user. In the present instance,the user ids “frank” and “carlos” would be returned to the user from thegenerated results table.

In one embodiment, the same methodology can be used to pipe the contentsof the inverted index 722 to a processing step. In other words, the useris able to use the inverted index 722 to efficiently and quickly performaggregate functions on field values that were not part of the initiallygenerated inverted index 722. For example, a user may want to determinean average object size (size of the requested gif) requested by clientsfrom IP address “127.0.0.1.” In this case, the search engine would againuse the reference values stored in inverted index 722 to retrieve theevent data from the field searchable data store and, further, extractthe object size field values from the associated events 731, 732, 733and 734. Once, the corresponding object sizes have been extracted (i.e.2326, 2900, 2920, and 5000), the average can be computed and returned tothe user.

In one embodiment, instead of explicitly invoking the inverted index 722in a user-generated query, e.g., by the use of special commands orsyntax, the SPLUNK® ENTERPRISE system can be configured to automaticallydetermine if any prior-generated inverted index can be used to expeditea user query. For example, the user's query may request the averageobject size (size of the requested gif) requested by clients from IPaddress “127.0.0.1.” without any reference to or use of inverted index722. The search engine, in this case, would automatically determine thatan inverted index 722 already exists in the data intake and query system108 that could expedite this query. In one embodiment, prior to runningany search comprising a field-value pair, for example, a search enginemay search though all the existing inverted indexes to determine if apre-generated inverted index could be used to expedite the searchcomprising the field-value pair. Accordingly, the search engine wouldautomatically use the pre-generated inverted index, e.g., inverted index722 to generate the results without any user-involvement that directsthe use of the index.

Using the reference values in an inverted index 722 to be able todirectly access the event data in the field searchable data store andextract further information from the associated event data for furtherfiltering and processing is highly advantageous because it avoidsincurring the computation overhead of regenerating the inverted index722 with additional fields or performing a new search.

The data intake and query system 108 includes one or more forwardersthat receive raw machine data from a variety of input data sources, andone or more indexers 206 that process and store the data in one or moredata stores 208. By distributing events among the indexers 206 and datastores 208, the indexers 206 can analyze events for a query in parallel.In one or more embodiments, a multiple indexer implementation of thesearch system would maintain a separate and respective inverted indexfor each of the above-described time-specific buckets that stores eventsfor a specific time range. A bucket-specific inverted index includesentries for specific field-value combinations that occur in events inthe specific bucket. As explained above, a search head 210 would be ableto correlate and synthesize data from across the various buckets andindexers 206.

This feature advantageously expedites searches because instead ofperforming a computationally intensive search in a centrally locatedinverted index that catalogues all the relevant events, an indexer 206is able to directly search an inverted index 722 stored in a bucketassociated with the time-range specified in the query. This allows thesearch to be performed in parallel across the various indexers. Further,if the query requests further filtering or processing to be conducted onthe event data referenced by the locally stored bucket-specific invertedindex, the indexer 206 is able to simply access the event records storedin the associated bucket for further filtering and processing instead ofneeding to access a central repository of event records, which woulddramatically add to the computational overhead.

In one embodiment, there may be multiple buckets associated with thetime-range specified in a query. If the query is directed to an invertedindex 722, or if the search engine automatically determines that usingan inverted index 722 would expedite the processing of the query, theindexers 206 will search through each of the inverted indexes 722associated with the buckets for the specified time-range. This featureallows the High Performance Analytics Store to be scaled easily.

In certain instances, where a query is executed before a bucket-specificinverted index updates, when the bucket-specific inverted index may notcover all of the events that are relevant to a query, the data intakeand query system 108 can use the bucket-specific inverted index toobtain partial results for the events that are covered bybucket-specific inverted index, but may also have to search through theevent data in the bucket associated with the bucket-specific invertedindex to produce additional results on the fly. In other words, anindexer 206 would need to search through event data stored in the bucket(that was not yet processed by the indexer for the correspondinginverted index) to supplement the partial results from thebucket-specific inverted index.

FIG. 7D presents a flowchart illustrating how an inverted index 722 in apipelined search query can be used to determine a set of event data thatcan be further limited by filtering or processing in accordance with thedisclosed embodiments.

At block 742, a query is received by a data intake and query system 108.In some embodiments, the query can be received as a user generated queryentered into a search bar of a graphical user search interface. Thesearch interface also includes a time range control element that enablesspecification of a time range for the query.

At block 744, an inverted index 722 is retrieved. Note, that theinverted index 722 can be retrieved in response to an explicit usersearch command inputted as part of the user generated query.Alternatively, the search engine can be configured to automatically usean inverted index 722 if it determines that using the inverted index 722would expedite the servicing of the user generated query. Each of theentries in an inverted index 722 keeps track of instances of a specificvalue in a specific field in the event data and includes references toevents containing the specific value in the specific field. In order toexpedite queries, in most embodiments, the search engine will employ theinverted index separate from the raw record data store to generateresponses to the received queries.

At block 746, the query engine determines if the query contains furtherfiltering and processing steps. If the query contains no furthercommands, then, in one embodiment, summarization information can beprovided to the user at block 754.

If, however, the query does contain further filtering and processingcommands, then at block 748, the query engine determines if therequisite information is available in the inverted index. Specifically,the query engine determines whether commands relate to further filteringor processing of the data extracted as part of the inverted index 722 orwhether the commands are directed to using the inverted index 722 as aninitial filtering step to further filter and process event datareferenced by the entries in the inverted index 722. If the query can becompleted using data already in the generated inverted index 722, thenthe further filtering or processing steps, e.g., a “count” number ofrecords function, “average” number of records per hour etc. areperformed and the results are provided to the user at block 750.

If, however, the query references fields that are not extracted in theinverted index, then the indexers 206 will access event data pointed toby the reference values in the inverted index 722 to retrieve anyfurther information required at block 756. Subsequently, any furtherfiltering or processing steps are performed on the fields extracteddirectly from the event data and the results are provided to the user atstep 758.

2.13.4. Accelerating Report Generation

In some embodiments, a data server system such as the data intake andquery system 108 can accelerate the process of periodically generatingupdated reports based on query results. To accelerate this process, asummarization engine automatically examines the query to determinewhether generation of updated reports can be accelerated by creatingintermediate summaries. If reports can be accelerated, the summarizationengine periodically generates a summary covering data obtained during alatest non-overlapping time period. For example, where the query seeksevents meeting a specified criterion, a summary for the time periodincludes only events within the time period that meet the specifiedcriteria. Similarly, if the query seeks statistics calculated from theevents, such as the number of events that match the specified criteria,then the summary for the time period includes the number of events inthe period that match the specified criteria.

In addition to the creation of the summaries, the summarization engineschedules the periodic updating of the report associated with the query.During each scheduled report update, the query engine determines whetherintermediate summaries have been generated covering portions of the timeperiod covered by the report update. If so, then the report is generatedbased on the information contained in the summaries. Also, if additionalevent data has been received and has not yet been summarized, and isrequired to generate the complete report, the query can be run on theseadditional events. Then, the results returned by this query on theadditional events, along with the partial results obtained from theintermediate summaries, can be combined to generate the updated report.This process is repeated each time the report is updated. Alternatively,if the data intake and query system 108 stores events in bucketscovering specific time ranges, then the summaries can be generated on abucket-by-bucket basis. Note that producing intermediate summaries cansave the work involved in re-running the query for previous timeperiods, so advantageously only the newer events needs to be processedwhile generating an updated report. These report acceleration techniquesare described in more detail in U.S. Pat. No. 8,589,403, entitled“COMPRESSED JOURNALING IN EVENT TRACKING FILES FOR METADATA RECOVERY ANDREPLICATION”, issued on 19 Nov. 2013, U.S. Pat. No. 8,412,696, entitled“REAL TIME SEARCHING AND REPORTING”, issued on 2 Apr. 2011, and U.S.Pat. Nos. 8,589,375 and 8,589,432, both also entitled “REAL TIMESEARCHING AND REPORTING”, both issued on 19 Nov. 2013, each of which ishereby incorporated by reference in its entirety for all purposes.

2.14. Security Features

The data intake and query system 108 provides various schemas,dashboards, and visualizations that simplify developers' tasks to createapplications with additional capabilities. One such application is anenterprise security application, such as SPLUNK® ENTERPRISE SECURITY,which performs monitoring and alerting operations and includes analyticsto facilitate identifying both known and unknown security threats basedon large volumes of data stored by the data intake and query system 108.The enterprise security application provides the security practitionerwith visibility into security-relevant threats found in the enterpriseinfrastructure by capturing, monitoring, and reporting on data fromenterprise security devices, systems, and applications. Through the useof the data intake and query system 108 searching and reportingcapabilities, the enterprise security application provides a top-downand bottom-up view of an organization's security posture.

The enterprise security application leverages the data intake and querysystem 108 search-time normalization techniques, saved searches, andcorrelation searches to provide visibility into security-relevantthreats and activity and generate notable events for tracking. Theenterprise security application enables the security practitioner toinvestigate and explore the data to find new or unknown threats that donot follow signature-based patterns.

Conventional Security Information and Event Management (SIEM) systemslack the infrastructure to effectively store and analyze large volumesof security-related data. Traditional SIEM systems typically use fixedschemas to extract data from pre-defined security-related fields at dataingestion time and store the extracted data in a relational database.This traditional data extraction process (and associated reduction indata size) that occurs at data ingestion time inevitably hampers futureincident investigations that may need original data to determine theroot cause of a security issue, or to detect the onset of an impendingsecurity threat.

In contrast, the enterprise security application system stores largevolumes of minimally-processed security-related data at ingestion timefor later retrieval and analysis at search time when a live securitythreat is being investigated. To facilitate this data retrieval process,the enterprise security application system provides pre-specifiedschemas for extracting relevant values from the different types ofsecurity-related events and enables a user to define such schemas.

The enterprise security application system can process many types ofsecurity-related information. In general, this security-relatedinformation can include any information that can be used to identifysecurity threats. For example, the security-related information caninclude network-related information, such as IP addresses, domain names,asset identifiers, network traffic volume, uniform resource locatorstrings, and source addresses. The process of detecting security threatsfor network-related information is further described in U.S. Pat. No.8,826,434, entitled “SECURITY THREAT DETECTION BASED ON INDICATIONS INBIG DATA OF ACCESS TO NEWLY REGISTERED DOMAINS”, issued on 2 Sep. 2014,U.S. Pat. No. 9,215,240, entitled “INVESTIGATIVE AND DYNAMIC DETECTIONOF POTENTIAL SECURITY-THREAT INDICATORS FROM EVENTS IN BIG DATA”, issuedon 15 Dec. 2015, U.S. Pat. No. 9,173,801, entitled “GRAPHIC DISPLAY OFSECURITY THREATS BASED ON INDICATIONS OF ACCESS TO NEWLY REGISTEREDDOMAINS”, issued on 3 Nov. 2015, U.S. Pat. No. 9,248,068, entitled“SECURITY THREAT DETECTION OF NEWLY REGISTERED DOMAINS”, issued on 2Feb. 2016, U.S. Pat. No. 9,426,172, entitled “SECURITY THREAT DETECTIONUSING DOMAIN NAME ACCESSES”, issued on 23 Aug. 2016, and U.S. Pat. No.9,432,396, entitled “SECURITY THREAT DETECTION USING DOMAIN NAMEREGISTRATIONS”, issued on 30 Aug. 2016, each of which is herebyincorporated by reference in its entirety for all purposes.Security-related information can also include malware infection data andsystem configuration information, as well as access control information,such as login/logout information and access failure notifications. Thesecurity-related information can originate from various sources within adata center, such as hosts, virtual machines, storage devices andsensors. The security-related information can also originate fromvarious sources in a network, such as routers, switches, email servers,proxy servers, gateways, firewalls and intrusion-detection systems.

During operation, the enterprise security application system facilitatesdetecting “notable events” that are likely to indicate a securitythreat. A notable event represents one or more anomalous incidents, theoccurrence of which can be identified based on one or more events (e.g.,time stamped portions of raw machine data) fulfilling pre-specifiedand/or dynamically-determined (e.g., based on machine-learning) criteriadefined for that notable event. Examples of notable events include therepeated occurrence of an abnormal spike in network usage over a periodof time, a single occurrence of unauthorized access to target system, ahost communicating with a server on a known threat list, and the like.These notable events can be detected in a number of ways, such as: (1) auser can notice a correlation in events and can manually identify that acorresponding group of one or more events amounts to a notable event; or(2) a user can define a “correlation search” specifying criteria for anotable event, and every time one or more events satisfy the criteria,the application can indicate that the one or more events correspond to anotable event; and the like. A user can alternatively select apre-defined correlation search provided by the application. Note thatcorrelation searches can be run continuously or at regular intervals(e.g., every hour) to search for notable events. Upon detection, notableevents can be stored in a dedicated “notable events index,” which can besubsequently accessed to generate various visualizations containingsecurity-related information. Also, alerts can be generated to notifysystem operators when important notable events are discovered.

The enterprise security application system provides variousvisualizations to aid in discovering security threats, such as a “keyindicators view” that enables a user to view security metrics, such ascounts of different types of notable events. For example, FIG. 12Aillustrates an example key indicators view 1200 that comprises adashboard, which can display a value 1201, for various security-relatedmetrics, such as malware infections 1202. It can also display a changein a metric value 1203, which indicates that the number of malwareinfections 1202 increased by 63 during the preceding interval. Keyindicators view 1200 additionally displays a histogram panel 1204 thatdisplays a histogram of notable events organized by urgency values, anda histogram of notable events organized by time intervals. This keyindicators view 1200 is described in further detail in pending U.S.patent application Ser. No. 13/956,338, entitled “KEY INDICATORS VIEW”,filed on 31 Jul. 2013, and which is hereby incorporated by reference inits entirety for all purposes.

These visualizations can also include an “incident review dashboard”that enables a user to view and act on “notable events.” These notableevents can include: (1) a single event of high importance, such as anyactivity from a known web attacker; or (2) multiple events thatcollectively warrant review, such as a large number of authenticationfailures on a host followed by a successful authentication. For example,FIG. 12B illustrates an example incident review dashboard 1210 thatincludes a set of incident attribute fields 1211 that, for example,enables a user to specify a time range field 1212 for the displayedevents. It also includes a timeline 1213 that graphically illustratesthe number of incidents that occurred in time intervals over theselected time range. It additionally displays an events list 1214 thatenables a user to view a list of all of the notable events that matchthe criteria in the incident attributes fields 1211. To facilitateidentifying patterns among the notable events, each notable event can beassociated with an urgency value (e.g., low, medium, high, critical),which is indicated in the incident review dashboard 1210. The urgencyvalue for a detected event can be determined based on the severity ofthe event and the priority of the system component associated with theevent.

2.15. Data Center Monitoring

As mentioned above, the data intake and query platform provides variousfeatures that simplify the developer's task to create variousapplications. One such application is a virtual machine monitoringapplication, such as SPLUNK® APP FOR VMWARE® that provides operationalvisibility into granular performance metrics, logs, tasks and events,and topology from hosts, virtual machines and virtual centers. Itempowers administrators with an accurate real-time picture of the healthof the environment, proactively identifying performance and capacitybottlenecks.

Conventional data-center-monitoring systems lack the infrastructure toeffectively store and analyze large volumes of machine-generated data,such as performance information and log data obtained from the datacenter. In conventional data-center-monitoring systems,machine-generated data is typically pre-processed prior to being stored,for example, by extracting pre-specified data items and storing them ina database to facilitate subsequent retrieval and analysis at searchtime. However, the rest of the data is not saved and discarded duringpre-processing.

In contrast, the virtual machine monitoring application stores largevolumes of minimally processed machine data, such as performanceinformation and log data, at ingestion time for later retrieval andanalysis at search time when a live performance issue is beinginvestigated. In addition to data obtained from various log files, thisperformance-related information can include values for performancemetrics obtained through an application programming interface (API)provided as part of the vSphere Hypervisor™ system distributed byVMware, Inc. of Palo Alto, Calif. For example, these performance metricscan include: (1) CPU-related performance metrics; (2) disk-relatedperformance metrics; (3) memory-related performance metrics; (4)network-related performance metrics; (5) energy-usage statistics; (6)data-traffic-related performance metrics; (7) overall systemavailability performance metrics; (8) cluster-related performancemetrics; and (9) virtual machine performance statistics. Suchperformance metrics are described in U.S. patent application Ser. No.14/167,316, entitled “CORRELATION FOR USER-SELECTED TIME RANGES OFVALUES FOR PERFORMANCE METRICS OF COMPONENTS IN ANINFORMATION-TECHNOLOGY ENVIRONMENT WITH LOG DATA FROM THATINFORMATION-TECHNOLOGY ENVIRONMENT”, filed on 29 Jan. 2014, and which ishereby incorporated by reference in its entirety for all purposes.

To facilitate retrieving information of interest from performance dataand log files, the virtual machine monitoring application providespre-specified schemas for extracting relevant values from differenttypes of performance-related events, and also enables a user to definesuch schemas.

The virtual machine monitoring application additionally provides variousvisualizations to facilitate detecting and diagnosing the root cause ofperformance problems. For example, one such visualization is a“proactive monitoring tree” that enables a user to easily view andunderstand relationships among various factors that affect theperformance of a hierarchically structured computing system. Thisproactive monitoring tree enables a user to easily navigate thehierarchy by selectively expanding nodes representing various entities(e.g., virtual centers or computing clusters) to view performanceinformation for lower-level nodes associated with lower-level entities(e.g., virtual machines or host systems). Example node-expansionoperations are illustrated in FIG. 12C, wherein nodes 1233 and 1234 areselectively expanded. Note that nodes 1231-1239 can be displayed usingdifferent patterns or colors to represent different performance states,such as a critical state, a warning state, a normal state or anunknown/offline state. The ease of navigation provided by selectiveexpansion in combination with the associated performance-stateinformation enables a user to quickly diagnose the root cause of aperformance problem. The proactive monitoring tree is described infurther detail in U.S. Pat. No. 9,185,007, entitled “PROACTIVEMONITORING TREE WITH SEVERITY STATE SORTING”, issued on 10 Nov. 2015,and U.S. Pat. No. 9,426,045, also entitled “PROACTIVE MONITORING TREEWITH SEVERITY STATE SORTING”, issued on 23 Aug. 2016, each of which ishereby incorporated by reference in its entirety for all purposes.

The virtual machine monitoring application also provides a UI thatenables a user to select a specific time range and then viewheterogeneous data comprising events, log data, and associatedperformance metrics for the selected time range. For example, the screenillustrated in FIG. 12D displays a listing of recent “tasks and events”and a listing of recent “ESX/I log entries” for a selected time rangeabove a performance-metric graph for “average CPU coreutilization” forthe selected time range. Note that a user is able to operate pull-downmenus 1242 to selectively display different performance metric graphsfor the selected time range. This enables the user to correlate trendsin the performance-metric graph with corresponding event and log data toquickly determine the root cause of a performance problem. This UI isdescribed in more detail in U.S. patent application Ser. No. 14/167,316,entitled “CORRELATION FOR USER-SELECTED TIME RANGES OF VALUES FORPERFORMANCE METRICS OF COMPONENTS IN AN INFORMATION-TECHNOLOGYENVIRONMENT WITH LOG DATA FROM THAT INFORMATION-TECHNOLOGY ENVIRONMENT”,filed on 29 Jan. 2014, and which is hereby incorporated by reference inits entirety for all purposes.

2.16. It Service Monitoring

As previously mentioned, the data intake and query platform providesvarious schemas, dashboards and visualizations that make it easy fordevelopers to create applications to provide additional capabilities.One such application is an IT monitoring application, such as SPLUNK® ITSERVICE INTELLIGENCE™, which performs monitoring and alertingoperations. The IT monitoring application also includes analytics tohelp an analyst diagnose the root cause of performance problems based onlarge volumes of data stored by the data intake and query system 108 ascorrelated to the various services an IT organization provides (aservice-centric view). This differs significantly from conventional ITmonitoring systems that lack the infrastructure to effectively store andanalyze large volumes of service-related events. Traditional servicemonitoring systems typically use fixed schemas to extract data frompre-defined fields at data ingestion time, wherein the extracted data istypically stored in a relational database. This data extraction processand associated reduction in data content that occurs at data ingestiontime inevitably hampers future investigations, when all of the originaldata may be needed to determine the root cause of or contributingfactors to a service issue.

In contrast, an IT monitoring application system stores large volumes ofminimally-processed service-related data at ingestion time for laterretrieval and analysis at search time, to perform regular monitoring, orto investigate a service issue. To facilitate this data retrievalprocess, the IT monitoring application enables a user to define an IToperations infrastructure from the perspective of the services itprovides. In this service-centric approach, a service such as corporatee-mail may be defined in terms of the entities employed to provide theservice, such as host machines and network devices. Each entity isdefined to include information for identifying all of the events thatpertains to the entity, whether produced by the entity itself or byanother machine, and considering the many various ways the entity may beidentified in machine data (such as by a URL, an IP address, or machinename). The service and entity definitions can organize events around aservice so that all of the events pertaining to that service can beeasily identified. This capability provides a foundation for theimplementation of Key Performance Indicators (KPIs).

One or more KPIs are defined for a service within the IT monitoringapplication. Each KPI measures an aspect of service performance at apoint in time or over a period of time (aspect KPIs). Each KPI isdefined by a search query that derives a KPI value from the machine dataof events associated with the entities that provide the service.Information in the entity definitions may be used to identify theappropriate events at the time a KPI is defined or whenever a KPI valueis being determined. The KPI values derived over time may be stored tobuild a valuable repository of current and historical performanceinformation for the service, and the repository, itself, may be subjectto search query processing. Aggregate KPIs may be defined to provide ameasure of service performance calculated from a set of service aspectKPI values; this aggregate may even be taken across defined timeframesand/or across multiple services. A particular service may have anaggregate KPI derived from substantially all of the aspect KPIs of theservice to indicate an overall health score for the service.

The IT monitoring application facilitates the production of meaningfulaggregate KPIs through a system of KPI thresholds and state values.Different KPI definitions may produce values in different ranges, and sothe same value may mean something very different from one KPI definitionto another. To address this, the IT monitoring application implements atranslation of individual KPI values to a common domain of “state”values. For example, a KPI range of values may be 1-100, or 50-275,while values in the state domain may be ‘critical,’ ‘warning,’ ‘normal,’and ‘informational’. Thresholds associated with a particular KPIdefinition determine ranges of values for that KPI that correspond tothe various state values. In one case, KPI values 95-100 may be set tocorrespond to ‘critical’ in the state domain. KPI values from disparateKPIs can be processed uniformly once they are translated into the commonstate values using the thresholds. For example, “normal 80% of the time”can be applied across various KPIs. To provide meaningful aggregateKPIs, a weighting value can be assigned to each KPI so that itsinfluence on the calculated aggregate KPI value is increased ordecreased relative to the other KPIs.

One service in an IT environment often impacts, or is impacted by,another service. The IT monitoring application can reflect thesedependencies. For example, a dependency relationship between a corporatee-mail service and a centralized authentication service can be reflectedby recording an association between their respective servicedefinitions. The recorded associations establish a service dependencytopology that informs the data or selection options presented in a GUI,for example. (The service dependency topology is like a “map” showinghow services are connected based on their dependencies.) The servicetopology may itself be depicted in a GUI and may be interactive to allownavigation among related services.

Entity definitions in the IT monitoring application can includeinformational fields that can serve as metadata, implied data fields, orattributed data fields for the events identified by other aspects of theentity definition. Entity definitions in the IT monitoring applicationcan also be created and updated by an import of tabular data (asrepresented in a comma separated value (CSV), another delimited file, ora search query result set). The import may be GUI-mediated or processedusing import parameters from a GUI-based import definition process.Entity definitions in the IT monitoring application can also beassociated with a service by means of a service definition rule.Processing the service definition rule results in the matching entitydefinitions being associated with the service definition. The servicedefinition rule can be processed at creation time, and thereafter on ascheduled or on-demand basis. This allows dynamic, rule-based updates tothe service definition.

During operation, the IT monitoring application can recognize notableevents that may indicate a service performance problem or othersituation of interest. These notable events can be recognized by a“correlation search” specifying trigger criteria for a notable event:every time KPI values satisfy the criteria, the application indicates anotable event. A severity level for the notable event may also bespecified. Furthermore, when trigger criteria are satisfied, thecorrelation search may additionally or alternatively cause a serviceticket to be created in an IT service management (ITSM) system, such asa system available from ServiceNow, Inc., of Santa Clara, Calif.

SPLUNK® IT SERVICE INTELLIGENCE™ provides various visualizations builton its service-centric organization of events and the KPI valuesgenerated and collected. Visualizations can be particularly useful formonitoring or investigating service performance. The IT monitoringapplication provides a service monitoring interface suitable as the homepage for ongoing IT service monitoring. The interface is appropriate forsettings such as desktop use or for a wall-mounted display in a networkoperations center (NOC). The interface may prominently display aservices health section with tiles for the aggregate KPIs indicatingoverall health for defined services and a general KPI section with tilesfor KPIs related to individual service aspects. These tiles may displayKPI information in a variety of ways, such as by being colored andordered according to factors like the KPI state value. They also can beinteractive and navigate to visualizations of more detailed KPIinformation.

The IT monitoring application provides a service-monitoring dashboardvisualization based on a user-defined template. The template can includeuser-selectable widgets of varying types and styles to display KPIinformation. The content and the appearance of widgets can responddynamically to changing KPI information. The KPI widgets can appear inconjunction with a background image, user drawing objects, or othervisual elements, that depict the IT operations environment, for example.The KPI widgets or other GUI elements can be interactive so as toprovide navigation to visualizations of more detailed KPI information.

The IT monitoring application provides a visualization showing detailedtime-series information for multiple KPIs in parallel graph lanes. Thelength of each lane can correspond to a uniform time range, while thewidth of each lane may be automatically adjusted to fit the displayedKPI data. Data within each lane may be displayed in a user selectablestyle, such as a line, an area, or a bar chart. During operation a usermay select a position in the time range of the graph lanes to activatelane inspection at that point in time. Lane inspection may display anindicator for the selected time across the graph lanes and display theKPI value associated with that point in time for each of the graphlanes. The visualization may also provide navigation to an interface fordefining a correlation search, using information from the visualizationto pre-populate the definition.

The IT monitoring application provides a visualization for incidentreview showing detailed information for notable events. The incidentreview visualization may also show summary information for the notableevents over a time frame, such as an indication of the number of notableevents at each of a number of severity levels. The severity leveldisplay may be presented as a rainbow chart with the warmest colorassociated with the highest severity classification. The incident reviewvisualization may also show summary information for the notable eventsover a time frame, such as the number of notable events occurring withinsegments of the time frame. The incident review visualization maydisplay a list of notable events within the time frame ordered by anynumber of factors, such as time or severity. The selection of aparticular notable event from the list may display detailed informationabout that notable event, including an identification of the correlationsearch that generated the notable event.

The IT monitoring application provides pre-specified schemas forextracting relevant values from the different types of service-relatedevents. It also enables a user to define such schemas.

3.0. Customization Tool for Dashboard

The data intake and query system 108 described above is configured tohave customizable dashboards. For example, end users and informationtechnology specialists monitoring a system may want to create acustomize dashboard based on business and monitoring needs. Rather thanthe user individually editing each portion of a dashboard or writing allof the backend code for the dashboard, the data intake and query system108 provides an interface with dragging and dropping functionality.Responsive to a user selecting a particular drop zone location, aselected visualization is sized for the drop zone location and one ormore neighboring visualizations are resized. An end user is a user thatviews the dashboard in the production interface environment. An end usermay optionally also modify the dashboard.

Turning to the Figures, FIG. 13 is a block diagram of an example dataintake and query system 108 with a dashboard editor in accordance withexample embodiments. The data intake and query system 108 in FIG. 13 issubstantively the same as the data intake and query system describedabove with reference to FIG. 2 . The data intake and query system 108may be communicatively connected to one or more client devices 404, suchas the client devices described above with reference to FIG. 4 . Theclient device 404 is configured to receive input from a user andtransmit the input to the search head 210.

As shown in FIG. 13 , the search head 210 includes a productionenvironment interface 1300 and an editor 1302. All, a part of, or noneof the production environment interface 1300 and/or the editor 1302 mayexecute on the client device 404. The production environment interface1300 is an interface that displays a dashboard 1304.

A dashboard 1304 is a graphical user interface with a collection ofvisualizations 1306 displayed in a single view. Through thevisualizations 1306, the dashboard 1304 organizes underlying data (e.g.,from one or more data sources, analytics tools of the data intake andquery system 108, and/or the data stores 208) into a single interfacefor display the user. The dashboard 1304 may include multiple views. Aview is a set of visualizations that are displayed concurrently in asingle window of the dashboard. In one or more embodiments, thedashboard in the production environment interface only displays a singleview in a window concurrently. For example, a view may be defined fordifferent groups of target systems being monitored, or for differentclassifications of data.

The visualizations 1306 may be various forms of charts (e.g., histogramcharts, graphs, donut charts, circle charts, timelines, etc.), lists,tables, and other discrete forms of visual information communication,that provide information to a user. In some embodiments, eachvisualization is discrete from other visualizations. Specifically,although the visualization may be related to other visualizations, theinformation communicated in the visualization is independent of thelocation of the visualization within the dashboard. Through thedashboard, users may identify relationships between metrics, identifytrends, and determine when problems or issues may exist.

In the production environment interface 1300, the dashboard 1304 is notmodifiable with respect to the layout or visualizations in at least someembodiments. In the production environment interface 1300, the dashboard1304 is populated using data. For example, the dashboard 1304 may becontinually updated as data is received.

Continuing with the search head 210, the search head 210 furtherincludes an editor 1302. The editor 1302 is a graphical user interfaceand underlying software for creating an updated dashboard. Creation maybe a generation of a new dashboard or a generation of an updateddashboard from an existing dashboard. The editor 1302 includes avisualization editor 1308 and a layout editor 1310. The visualizationeditor 1308 is an editor for updating individual visualizations. Thevisualization editor 1308 includes a graphical user interface andinterpretation software for building a visualization.

A visualization may be specified by a definition, preset data, and avisualization type code. The visualization type code is a set ofcomputer instruction code for rendering a visualization of a particularvisualization type. Specifically, the visualization type code isconfigured to receive, as input, parameters of a visualization andoutput a rendering of the visualization. The parameters may include, forexample, the colors and/or color scheme, size, data, and any otherparameters of the visualization. The output of the visualization typecode is a rendered visualization. The visualization type code is codethat specifies how to place the location of lines, shapes, andcharacters in a visualization of a particular visualization type whenprovided with a set of input parameters having the data for thevisualization. The visualization type is the particular type of chart,list, or other type. The visualization type code may further includeinstructions for generating a legend for the visualization. For example,a donut chart visualization type has a different visualization type codethan any of a table visualization type, circle visualization type,histogram visualization type, or other visualization type.

The definition defines the visualization type, dataset to use for thevisualization, style, font colors and a color encoding for the datasetin the visualization, one or more location identifiers within a cell fordisplayed components of the visualization (e.g., location of text in thevisualization), text to display, whether to include legends and labelsto add, and other displayed parameters of the visualization. In one ormore embodiments, the definition is defined in JSON or extensible markuplanguage (XML) format.

The preset data links the definition and the visualization type code.The preset data references the visualization type code for a particularvisualization and translates the components of the definition into inputparameters for the visualization type code. In one or more embodiments,the preset data is dependent on the visualization type specified in thedefinition. An independent preset data may exist for each visualizationtype included in the definition.

Continuing with the visualization editor 1308, the visualization editor1308 includes a definition editor 1312 and a preset editor 1314. In oneor more embodiments, the definition editor 1312 is a user interface forthe user to edit the definition. The preset editor 1314 is a userinterface for the user to update the preset data. The editor 1302 mayfurther include an interpreter. The interpreter is computer readableprogram code that parses the definition and the preset data, to extractinformation and passes the extracted information to the visualizationtype code to render the visualization.

The layout editor 1310 includes functionality to modify the layout ofthe dashboard 1304 based on user input. The layout editor 1310 is a toolthat assists a user in updating a dashboard. For example, the layouteditor is configured to propagate changes and automatically size andresize visualizations without input from the user. The result of thelayout editor 1310 is a simplified interface that provides drag and dropfunctionality while creating a professional quality dashboard. Uponinput to add, move, or remove a visualization, the layout editor 1310algorithmically adjusts the layout to avoid or mitigate for null space(i.e., where no visualization is present), perform automatic alignment,and maintain sizing requirements of visualizations. Thus, one or moreembodiments are directed to an improved and simplified user interface bywhich a dashboard is customized.

The layout editor 1310 includes an event listener 1316, a previewer1318, and a layout manager 1320. The event listener 1316 is configuredto wait for and handle various user events. User events can includeclick events, dragging events, and other types of user events. Userevents may be for a selected visualization and/or an edge. The selectedvisualization is a visualization that is selected to be added, moved, orremoved. The user event for an edge may be an edge dragging event.

The previewer 1318 is a graphical user interface configured to present apreview of the dashboard. A previewer 1318 is a view of the dashboardprior to being put in the production environment interface 1300. In oneor more embodiments, prior to receiving a selection to accept a dropzone location for a selected visualization, the previewer 1318 maypresent a placeholder for a selected visualization in the userinterface. A placeholder is a general representation of thevisualization that is the same size and shape as the visualization ifplaced at the drop zone location. The placeholder may be a fuzzy versionof the visualization that is a solid shape in which the visualizationwould appear, or another type of shape.

The layout manager 1320 is a software tool that automatically propagatesadjustments to the layout to remainder portions of the dashboard. Forexample, the layout manager 1320 includes functionality to automaticallyresize, move, and edit neighboring visualizations based on user input ofa selected visualization. The layout manager 1320 is further configuredto transmit updates of the dashboard to the previewer.

FIG. 14A depicts an example schematic diagram of a dashboard 1400, inaccordance with example embodiments. As shown in FIG. 14A, the dashboardincludes multiple cells 1402 in a single view. In one or moreembodiments, a one to one correspondence between cells 1402 andvisualizations 1404 exists. A cell 1402 is a discrete, dynamicallychanging location that holds a visualization 1404. The visualization1404 is the graphics and text inside of the cell 1402. The cell may be abounding box for the visualization. For example, the cell may be arectangular shape that just fits the visualization. Thus, the graphicsand text for a visualization 1404 may span the size of the cell 1402. Insome embodiments, the cell is any shape. The cell 1402 is dynamic inthat a cell may be resized, removed, partitioned to create a new cell,and dynamically added as updates to the layout are performed.

The cell 1402 includes edges 1406. Edges 1406 are the boundary on a sideof a cell 1402. For example, an edge may be a boundary betweenneighboring cells. In embodiments in which the cell is rectangular, thecell has four edges.

Edges may be set as hidden or visible in the production environmentinterface. Visible edges have a border overlaid on the edge. Whereas anedge is a boundary, the border is a visual indicator of the edge 1406that is displayed to an end user. In one or more embodiments, bordersare generated at runtime and when a visualization is loaded. Namely,borders are not saved with the dashboard code.

Although not shown, the dashboard may include additional components. Theadditional components may include titles, menu options, view selectors,and other graphical options that allow the end user to specify the datapresented in the dashboard.

A drop zone location is a location in which a user requests to locate aselected visualization. The drop zone location may be along an edge oron an existing cell 1402. Drop zone location have neighboring cells. Aneighboring cell is a cell that shares at least one edge with the dropzone location. For example, if the drop zone location is on an edge, theneighboring cells are cells that have the same edge. If the drop zonelocation is on a cell, the neighboring cells are the cells that have anedge in common with the cell of the drop zone location. Because a cell1402 may have multiple edges 1406, the cell 1402 that is a drop onelocation may also have neighboring cells.

A cell has adjacent cells. Adjacent cells are cells that share an edgewith a cell. When a visualization is moved, the adjacent cells may becells that are adjacent to the moved location of a cell.

As discussed above, a cell 1402 may be a drop zone location. The dropzone location for a cell 1402 may be defined by quadrants. FIG. 14Bdepicts an example schematic diagram of a cell 1402 partitioned intoquadrants 1410, 1412, 1414, 1416, in accordance with exampleembodiments. As shown in FIG. 14B, the quadrants may be defined astriangles that have vertices in the center of the cell. Each quadrant1410, 1412, 1414, 1416 corresponds to a particular drop zone location.The drop zone location corresponds to half of a cell.

FIG. 14C depicts an example schematic diagram of a cell 1402 partitionedtwice to show the drop zone locations when the drop zone locations arein a cell, in accordance with example embodiments. The top drop zonequadrant 1410 in FIG. 14B corresponds to the top drop zone location 1420in FIG. 14C. The left drop zone quadrant 1412 in FIG. 14B corresponds tothe left drop zone location 1424 in FIG. 14C. The bottom drop zonequadrant 1416 in FIG. 14B corresponds to the bottom drop zone location1422 in FIG. 14C. The right drop zone quadrant 1414 in FIG. 14Bcorresponds to the right drop zone location 1426 in FIG. 14C.

FIGS. 14A-C are for example purposes. For example, the layout of FIG.14A is an example layout of cells to illustrate cell positioning andsizes. By way of another example, although cells are shown as beingpartitioned into quadrants in FIG. 14B, whereby each quadrantcorresponds to half the cell as in FIG. 14C, the cells may bepartitioned in virtually any manner to any number of regions, wherebyeach region corresponds to a drop zone location.

FIGS. 15-20 present flowcharts in accordance with one or moreembodiments. While the various blocks in the flowcharts are presentedand described sequentially, one of ordinary skill will appreciate thatat least some of the blocks may be executed in different orders, may becombined or omitted, and at least some of the blocks may be executed inparallel. Furthermore, the blocks may be performed actively orpassively. For example, some blocks may be performed using polling or beinterrupt driven. By way of an example, determination blocks may nothave a processor process an instruction unless an interrupt is receivedto signify that condition exists. As another example, determinations maybe performed by performing a test, such as checking a data value to testwhether the value is consistent with the tested condition.

FIG. 15 depicts a flowchart for updating a dashboard, in accordance withexample embodiments. The flowchart of FIG. 15 illustrates adding aselected visualization to a drop zone location. In FIG. 15 , theselected visualization may be a new visualization or an existingvisualization that is moved from a different location. For example, auser may specify a new visualization by adding the definition and presetdata to the visualization code. In some embodiments, for the same typeof visualization, the user may simply add a new definition that links tothe same preset data. Thus, multiple definitions may reference the samepreset data. Similarly, the multiple preset data may reference the samevisualization type code.

At Block 1502, a drop zone location of a selected visualization within adashboard is detected. The user may use the interface to select (e.g.,with point and click operations) a visualization to be a selectedvisualization. An event listener may receive the event of the selectionand identify the object (i.e., visualization) selected. Thevisualization that is selected is the selected visualization. As theselected visualization is moved in the dashboard, the previewer showsthe movement. Because of a hover event (e.g., the selected visualizationis detected as being over a particular location for more than athreshold amount of time) over the drop zone location or a selectionevent on the drop zone location, the drop zone location of the selectedvisualization is detected. Other interface widgets may be used forselecting a visualization. For example, the other interface widgets maybe drop down boxes, etc. that are configured to receive coordinates ofthe drop zone location.

At Block 1504, at least one neighboring location to the drop zonelocation is identified, wherein the at least one neighboringvisualization shares an edge with the drop zone location. To identifythe at least one neighboring visualization, the one or more edges of thedrop zone location are identified. If the drop zone location is on anedge, then the at least one neighboring visualization is any cell thathas the same edge as the drop zone location. If the drop zone locationis on a cell of the visualization, then the at least one neighboringvisualization is the visualization in the cell. The at least oneneighboring visualization may also include any visualization that sharesan edge with the cell of the drop zone location when the drop zonelocation is a cell.

At Block 1506, the selected visualization is sized for the drop zonelocation. A portion of neighboring visualization(s) is reclaimed tocreate space for the selected visualization.

If the drop zone location is on an edge, then a portion of each of theneighboring visualizations is reclaimed for space for the selectedvisualization. For example, the portion may be a predefined percentageof the neighboring visualization. The predefined percentage may be athird of each of the neighboring visualizations. The reclaimed space isthus a continuous percentage of the neighboring visualizations. Thevisualization is sized and shape to fit the space.

If the drop zone location is on a cell, then the size of the selectedvisualization may be a predefined percentage of the cell. A portion ofthe cell that is the drop zone location is reclaimed. The predefinedpercentage for a cell may be different than the predefined percentagewhen the drop zone location is on an edge. For example, the predefinedpercentage for the cell may be half of the cell. In some embodiments, aportion of the neighboring cells to the drop zone location cell are alsoreclaimed as described above. Thus, the visualization is sized andshaped to fit the reclaimed space.

In some embodiments, one or more of the neighboring visualizations areexcluded from having space reclaimed or the amount of space reclaimed isreduced based on criteria. For example, the excluded or reduced spaceneighboring visualizations may be due to minimum size requirements ofthe neighboring visualization, or that the resulting space would causean irregular shape. In such a scenario, each of the neighboringvisualizations described above refers to the neighboring visualizationsthat are not excluded and only the reduced space is reclaimed for anyreduced space visualizations.

Continuing with the discussion of sizing and shaping a visualization,the created space becomes a cell for the selected visualization. Basedon the amount of reclaimed space, the selected visualization is sizedand shaped to fit the new cell.

Sizing and shaping the selected visualization may be performeddifferently for visualizations that are equidistant from the centeralong two axes as compared to visualization that are not equidistantfrom the center. Namely, visualizations, such as donut charts and piecharts, are equidistant from the center along two axes. Thus, the sizingand shaping is to scale the visualization along both axes equallyaccording to the minimum of the height and width of the new cell. Thelocation and size of any legend and other text may be changedalgorithmically to fit the remaining space in the new cell.

Some visualizations, such as time series charts, histograms, andtimelines, are not equidistant from the center for both axes. Forvisualizations that are not equidistant from the center, the size andshape may be performed individually for the horizontal and the verticalaxes. Namely, the horizontal axis of the selected visualization may bescaled to fit the width of the new cell. The vertical axis of theselected visualization is scaled to fit the height of the new cell. Theamount of scaling may be performed to save space for any text, legends,and other items that are to be added to the new cell.

At Block 1508, the at least one neighboring visualization is resizedbased on the selected visualization being added to the drop zonelocation. Any neighboring visualization that had a portion of the cellreclaimed is resized and shaped to fit the remaining portion of thecell. The resizing and shaping may be performed as discussed above forthe selected visualization. Specifically, a determination is madewhether the type of visualization is such that the scaling should beperformed along both axes by the same amount or independently.

At Step 1510, the selected visualization is added to the drop zonelocation to generate an updated dashboard. The selected visualization isadded to the reclaimed space.

At Block 1512, the updated dashboard is presented. The selectedvisualization and the neighboring visualization are rendered accordingto the scaling. Presenting herein includes transmitting to a clientdevice via a network and/or displaying locally or on the client device.Thus, presenting the dashboard may be to display the dashboard and/ortransmit the dashboard to the client device for display. Thus, the usercan see the updated dashboard.

In one or more embodiments, Blocks 1506, 1508, 1510, and 1512 may beperformed concurrently. Further, the underlying software instructionsfor performing Blocks 1506, 1508, 1510, and 1512 may be overlapping.Thus, while distinct operations are performed, from a computerperspective, the same instructions may perform multiple operations.

FIG. 16 depicts a flowchart for updating a dashboard based on drop zonelocation, in accordance with example embodiments. In particular, FIG. 16shows a more detailed diagram for when to resize neighboringvisualizations in accordance with one or more embodiments. At Block1602, a drop zone location is detected. Detecting the drop zone locationmay be performed as discussed above with reference to FIG. 15 .

At Block 1604, a determination is made whether the drop zone location ison an edge or on a cell. If the drop zone location is on an edge, thenthe neighboring visualizations are resized to create a cell for theselected visualization at Block 1606. As discussed below, a preview maybe generated and presented prior to resizing. Further, the user mayapprove the selected visualization at the drop zone location prior toadding the selected visualization to the drop zone location.

In one or more embodiments, if the drop zone location is a cell, thecell is partitioned into quadrants at Block 1608. Partitioning the cellinto quadrants may be performed by calculating the lines from the cornerof the cell to the opposing corner that is through the center of thecell. At Block 1610, the quadrant having the drop zone location isdetected. In one or more embodiments, the same instructions may be usedto partition the cell into quadrants as to determine the quadrant havingthe drop zone location. Namely, rather than determining each of thequadrants, only the quadrants near the drop zone location may bedetermined as to the location of the drop zone location.

At Block 1612, a preview of the selected visualization on the cell andover a first half of the cell as defined by the quadrant is generated.The preview may include a resizing and reshaping of the neighboringvisualizations as discussed in FIG. 15 . The preview may further includedisplaying a placeholder for the selected visualization at the new cell.

At Block 1614, a determination is made whether approval for the previewis received. The determination may be made based on whether an event isreceived with an indication that the user selected an option to acceptor approve the preview. If the preview is not approved, the flow mayreturn to Block 1602. For example, the user may continue to drag theselected visualization around the dashboard and select a different droplocation. If the approval is received, the flow may proceed to Block1616.

In Block 1616, the selected visualization is sized to fit over the firsthalf of the existing cell based on the quadrant. A new cell is createdfor the first half of the cell, whereby the first half is defined by thequadrant. The selected visualization may be sized and shaped to fitwithin the new cell, as described above with reference to FIG. 15 .Further, the neighboring visualization is resized to fit over the secondhalf of the cell, whereby the second half is defined by the quadrant atBlock 1618. The resizing of the neighboring visualization may beperformed as discussed above with reference to FIG. 15 . The updateddashboard may be generated and presented as described above.

When a selected visualization is moved, adjacent cells to the cell atthe initial location of the selected visualization are updated to fillin the abandoned space. FIG. 17 depicts a flowchart for updatingadjacent visualization based on movement of a selected visualization, inaccordance with example embodiments. At Block 1702, a selection to movea visualization is detected. An event of a user selecting avisualization and dragging the visualization is received.

At Block 1704, adjacent visualization(s) to the moved visualization areidentified. The adjacent visualizations are in adjacent cells to theinitial location cell (i.e., a cell at the initial location of thevisualization). An adjacent cell is a cell that shares an edge with theinitial location cell. Thus, identifying adjacent visualizations may beperformed by, for each edge of the initial location cell, determiningthe adjacent cell that has the same edge. Adjacent cells in which only aportion of the edge is the same may be excluded. Thus, if the same edgeof the adjacent cell has a first portion shared with the initiallocation cell as well as a second portion shared with another cell, theadjacent cell is excluded from resizing at Block 1706.

At Block 1706, the size of one or more of the adjacent visualizationsare increased to fill the space created by the moved visualization. Theinitial location cell is removed, and the adjacent cells are expanded tofill in the void from the removal of the initial location cell. Theamount of expansion may be equal amongst the adjacent cells. As anotherexample, the amount of expansion may be proportional to initial size orto make the cells more equal in final size. Other rules for expansionmay be used. Further, the adjacent visualizations in the expanded cellsare resized to fit the expanded cells. The resizing may be performedaccording to FIG. 15 , whereby the scaling parameter is set to increasethe size of the visualization.

In one or more embodiments, the user may select to drag an edge toresize visualizations and change the layout. FIG. 18 depicts a flowchartfor responding to an edge dragging event, in accordance with exampleembodiments.

At Block 1802, an edge dragging event is detected. The event is of auser selecting an edge and dragging the edge in the user interface. AtBlock 1804, a determination is made whether one or more parallel edgesto the selected edge are identified. A parallel edge is an edge that isparallel with the selected edge. The parallel edge that is identified isalso within a threshold distance in the perpendicular direction to theselected edge. Namely, on the parallel axis to the selected edge, theparallel edge may be any distance from the selected edge. On theperpendicular axis to the selected edge, the parallel edge is athreshold distance to the selected edge. For example, the thresholddistance may be within ten pixels. The threshold distance may be withrespect to an initial location of the selected edge, a stop dragginglocation of the selected edge, or a location along the dragging path ofthe selected edge.

Further, at Block 1806, a determination is made whether thevisualizations satisfy minimum size requirements. Each neighboringvisualization to the edge may be defined with a parameter specifying theminimum size of the visualization. The parameter may be a configurableparameter. Thus, determining whether a visualization satisfies a minimumsize requirement may be based on whether each visualization with thechanges made would satisfy the minimum size requirements for theparticular visualization.

If a parallel edge is identified and the minimum size requirements aresatisfied, the flow may proceed to Block 1808, to set the edge draggingevent to make the selected edge be collinear with the parallel edgebased on the parallel edge being within a threshold distance (i.e., inthe perpendicular direction) to the selected edge. Making the paralleledge and selected edge collinear gives a visual alignment to thevisualizations making the dashboard more understandable withoutrequiring the user to request the alignment. Making the edges collinearmay include moving the parallel edge per the edge dragging event,snapping the selected edge to be colinear with the parallel edge orperforming a combination of operations.

Continuing to Block 1810, if a parallel edge does not exist, the stoplocation of the edge dragging event is determined. The stop location isthe end location of the edge dragging event. A determination is madewhether the visualizations satisfy the minimum size requirement at Block1812. Block 1812 may be performed in a same or similar manner to Block1806 as discussed above. If in Block 1806 or 1812, a determination ismade that the minimum size requirements are not satisfied (e.g.,continuing to drag would violate the minimum size requirements), theedge is set such that the visualizations satisfy the minimum sizerequirements at Block 1814. The edge may be set to stop when avisualization is at a minimum size rather than reducing the sizefurther. Although not shown, Block 1812 and Block 1806 may becontinually performed during the edge dragging event. In such ascenario, the user may be prohibited or stopped from continuing orcompleting the edge dragging event once the minimum size of an adjacentvisualization is reached. As another example, an alert may be presentedto the user that the minimum size is reached.

Returning to Block 1812, if parallel edges do not exist and the stoplocation of the edge dragging event satisfies minimum size requirements,the flow may proceed to Block 1816. At Block 1816, the selected edge isset at the stop location of the edge dragging event.

When the selected edge is set, the cells of the neighboringvisualizations to the selected edge are expanded or decreased accordingto the edge dragging event. Neighboring visualizations in the cells areresized based on the expanded or decreased cells.

FIG. 19 depicts a flowchart for loading a dashboard, in accordance withexample embodiments. At Block 1902, a saved dashboard is loaded. Thesaved dashboard is loaded from memory. For the visualizations, thedashboard specifies one or more queries that are executed initially,periodically, and/or continually to populate the visualizations withdata. The execution may include the search head transmitting a requestto the indexers and data stores. At Block 1904, as part of loading thedashboard, the borders are generated at runtime. The borders may beregenerated when the dashboard is updated as in FIG. 15 or 18 , and whenan end user selects to view the dashboard. Generating a border isdescribed below and with reference to FIG. 20 .

FIG. 20 depicts a flowchart for adding a border to a loaded dashboard,in accordance with example embodiments. At Block 2002, the border isstarted at a first position. An initial edge may be selected. Forexample, the initial edge may be the upper left most edge to get theborder. The first position of the edge may be the upper left mostposition of the edge. At Block 2004, a border is extended along theedge, including collinear adjacent edges, until an intersection point.The intersection point may be one of the border intersecting a cell,such as intersecting the cell from a perpendicular direction, or theborder intersecting with a corner of four visualizations. Namely, whenthe border hits a corner in which four cells meet, the corner may bereferred to as an intersection point.

At Block 2006, the border is broken at the intersection point. Namely,the stop position of the border is at the intersection point or within apredefined number of pixels to the intersection point to show the break.

FIG. 20 may be performed for each edge having a border. In someembodiments, only internal edges have a border. In other embodiments,other edges may have a border.

The following examples of dashboards and updating a dashboard is forexplanatory purposes only. FIG. 21A and FIG. 21B depict an exampleeditor interface for moving a visualization, in accordance with exampleembodiments. In particular, FIG. 21A and FIG. 21B show the exampledashboard 2100 when a visualization is being moved in accordance withone or more embodiments. As shown in FIG. 21A, a user may select thevisualization 2102. The user may drag the selected visualization 2102 asshown in FIG. 21B. During the dragging, the selected visualization 2102may be shown as an overlay on the example dashboard 2100. Namely, theeditor may have a layering view of the visualization that is selected toshow that the selected visualization is being moved.

FIGS. 22A-C show an example of moving a selected visualization inaccordance with one or more embodiments. FIG. 22A depicts an exampleeditor interface showing an example dashboard 2200. The user selectsvisualization 2202. Visualizations 2206, 2204, and 2208 are adjacentvisualizations.

FIG. 22B depicts an example editor interface with a preview view, inaccordance with example embodiments. From FIG. 22A, the user movesvisualization 2202 to drop zone location 2212 in FIG. 22B. Cell 2210 ischanged to an empty cell and new cell 2212 is created. The new cell iscreated by reducing the size of the neighboring visualization 2214 fromthe size shown in FIG. 22A. Further, a placeholder, such as a box iscreated in the drop zone location of the new cell 2212.

When an event is received indicating the user's acceptance of thelocation, the dashboard shown in FIG. 22C is displayed. As shown in FIG.22C, the selected visualization is in cell 2202. Neighboringvisualization 2214 remains the same size as in FIG. 22B. As shownthrough comparison of FIG. 22A with FIG. 22C, adjacent visualizations2206, 2204, 2208 are expanded in size based on the removal of theoriginal cell for visualization 2202 and the increase in size of theadjacent cells.

As discussed above, by changing the definition and preset data, thevisualization type may change. FIG. 23A and FIG. 23B show a diagram forchanging a visualization type. FIG. 23A depicts a user side example ofthe visualization type change. As shown in FIG. 23A, a chart is changedfrom a column chart 2300 to a donut chart 2302, while the underlyingdata represented in the chart remains the same. To perform the change,visualization type code for a donut type visualization is added.Further, as shown in FIG. 23B, the preset data 2304 is updated to relatea donut type identifier to the visualization type code for the donuttype visualization 2306. The definition 2308 is updated to reference thepreset data 2310 for the donut type visualization. Additional optionsmay be added to modify the color scheme and add labels. Although notshown, the additional options may be passed as parameters via the presetdata to the visualization type code. Thus, the user may easily modifythe dashboard with both the visualization type presented and the layout.

4.0. Terminology

Computer programs typically comprise one or more instructions set atvarious times in various memory devices of a computing device, which,when read and executed by at least one processor, will cause a computingdevice to execute functions involving the disclosed techniques. In someembodiments, a carrier containing the aforementioned computer programproduct is provided. The carrier is one of an electronic signal, anoptical signal, a radio signal, or a non-transitory computer-readablestorage medium.

Any or all of the features and functions described above can be combinedwith each other, except to the extent it may be otherwise stated aboveor to the extent that any such embodiments may be incompatible by virtueof their function or structure, as will be apparent to persons ofordinary skill in the art. Unless contrary to physical possibility, itis envisioned that (i) the methods/steps described herein may beperformed in any sequence and/or in any combination, and (ii) thecomponents of respective embodiments may be combined in any manner.

Although the subject matter has been described in language specific tostructural features and/or acts, it is to be understood that the subjectmatter defined in the appended claims is not necessarily limited to thespecific features or acts described above. Rather, the specific featuresand acts described above are disclosed as examples of implementing theclaims, and other equivalent features and acts are intended to be withinthe scope of the claims.

Conditional language, such as, among others, “can,” “could,” “might,” or“may,” unless specifically stated otherwise, or otherwise understoodwithin the context as used, is generally intended to convey that certainembodiments include, while other embodiments do not include, certainfeatures, elements and/or steps. Thus, such conditional language is notgenerally intended to imply that features, elements and/or steps are inany way required for one or more embodiments or that one or moreembodiments necessarily include logic for deciding, with or without userinput or prompting, whether these features, elements and/or steps areincluded or are to be performed in any particular embodiment.

Unless the context clearly requires otherwise, throughout thedescription and the claims, the words “comprise,” “comprising,” and thelike are to be construed in an inclusive sense, as opposed to anexclusive or exhaustive sense, e.g., in the sense of “including, but notlimited to.” As used herein, the terms “connected,” “coupled,” or anyvariant thereof means any connection or coupling, either direct orindirect, between two or more elements; the coupling or connectionbetween the elements can be physical, logical, or a combination thereof.Additionally, the words “herein,” “above,” “below,” and words of similarimport, when used in this application, refer to this application as awhole and not to any particular portions of this application. Where thecontext permits, words using the singular or plural number may alsoinclude the plural or singular number respectively. The word “or” inreference to a list of two or more items, covers all of the followinginterpretations of the word: any one of the items in the list, all ofthe items in the list, and any combination of the items in the list.Likewise the term “and/or” in reference to a list of two or more items,covers all of the following interpretations of the word: any one of theitems in the list, all of the items in the list, and any combination ofthe items in the list.

Conjunctive language such as the phrase “at least one of X, Y and Z,”unless specifically stated otherwise, is otherwise understood with thecontext as used in general to convey that an item, term, etc. may beeither X, Y or Z, or any combination thereof. Thus, such conjunctivelanguage is not generally intended to imply that certain embodimentsrequire at least one of X, at least one of Y and at least one of Z toeach be present. Further, use of the phrase “at least one of X, Y or Z”as used in general is to convey that an item, term, etc. may be eitherX, Y or Z, or any combination thereof.

In some embodiments, certain operations, acts, events, or functions ofany of the algorithms described herein can be performed in a differentsequence, can be added, merged, or left out altogether (e.g., not allare necessary for the practice of the algorithms). In certainembodiments, operations, acts, functions, or events can be performedconcurrently, e.g., through multi-threaded processing, interruptprocessing, or multiple processors or processor cores or on otherparallel architectures, rather than sequentially.

Systems and modules described herein may comprise software, firmware,hardware, or any combination(s) of software, firmware, or hardwaresuitable for the purposes described. Software and other modules mayreside and execute on servers, workstations, personal computers,computerized tablets, PDAs, and other computing devices suitable for thepurposes described herein. Software and other modules may be accessiblevia local computer memory, via a network, via a browser, or via othermeans suitable for the purposes described herein. Data structuresdescribed herein may comprise computer files, variables, programmingarrays, programming structures, or any electronic information storageschemes or methods, or any combinations thereof, suitable for thepurposes described herein. User interface elements described herein maycomprise elements from GUIs, interactive voice response, command lineinterfaces, and other suitable interfaces.

Further, processing of the various components of the illustrated systemscan be distributed across multiple machines, networks, and othercomputing resources. In certain embodiments, one or more of thecomponents of the data intake and query system 108 can be implemented ina remote distributed computing system. In this context, a remotedistributed computing system or cloud-based service can refer to aservice hosted by one more computing resources that are accessible toend users over a network, for example, by using a web browser or otherapplication on a client device to interface with the remote computingresources. For example, a service provider may provide a data intake andquery system 108 by managing computing resources configured to implementvarious aspects of the system (e.g., search head 210, indexers 206,etc.) and by providing access to the system to end users via a network.

When implemented as a cloud-based service, various components of thedata intake and query system 108 can be implemented usingcontainerization or operating-system-level virtualization, or othervirtualization technique. For example, one or more components of thedata intake and query system 108 (e.g., search head 210, indexers 206,etc.) can be implemented as separate software containers or containerinstances. Each container instance can have certain resources (e.g.,memory, processor, etc.) of the underlying host computing systemassigned to it but may share the same operating system and may use theoperating system's system call interface. Each container may provide anisolated execution environment on the host system, such as by providinga memory space of the host system that is logically isolated from memoryspace of other containers. Further, each container may run the same ordifferent computer applications concurrently or separately and mayinteract with each other. Although reference is made herein tocontainerization and container instances, it will be understood thatother virtualization techniques can be used. For example, the componentscan be implemented using virtual machines using full virtualization orparavirtualization, etc. Thus, where reference is made to“containerized” components, it should be understood that such componentsmay additionally or alternatively be implemented in other isolatedexecution environments, such as a virtual machine environment.

Likewise, the data repositories shown can represent physical and/orlogical data storage, including, e.g., storage area networks or otherdistributed storage systems. Moreover, in some embodiments theconnections between the components shown represent possible paths ofdata flow, rather than actual connections between hardware. While someexamples of possible connections are shown, any of the subset of thecomponents shown can communicate with any other subset of components invarious implementations.

Embodiments are also described above with reference to flow chartillustrations and/or block diagrams of methods, apparatus (systems) andcomputer program products. Each block of the flow chart illustrationsand/or block diagrams, and combinations of blocks in the flow chartillustrations and/or block diagrams, may be implemented by computerprogram instructions. Such instructions may be provided to a processorof a general purpose computer, special purpose computer,specially-equipped computer (e.g., comprising a high-performancedatabase server, a graphics subsystem, etc.) or other programmable dataprocessing apparatus to produce a machine, such that the instructions,which execute via the processor(s) of the computer or other programmabledata processing apparatus, create means for implementing the actsspecified in the flow chart and/or block diagram block or blocks. Thesecomputer program instructions may also be stored in a non-transitorycomputer-readable memory that can direct a computer or otherprogrammable data processing apparatus to operate in a particularmanner, such that the instructions stored in the computer-readablememory produce an article of manufacture including instruction meanswhich implement the acts specified in the flow chart and/or blockdiagram block or blocks. The computer program instructions may also beloaded to a computing device or other programmable data processingapparatus to cause operations to be performed on the computing device orother programmable apparatus to produce a computer implemented processsuch that the instructions which execute on the computing device orother programmable apparatus provide steps for implementing the actsspecified in the flow chart and/or block diagram block or blocks.

Any patents and applications and other references noted above, includingany that may be listed in accompanying filing papers, are incorporatedherein by reference. Aspects of the invention can be modified, ifnecessary, to employ the systems, functions, and concepts of the variousreferences described above to provide yet further implementations of theinvention. These and other changes can be made to the invention in lightof the above Detailed Description. While the above description describescertain examples of the invention, and describes the best modecontemplated, no matter how detailed the above appears in text, theinvention can be practiced in many ways. Details of the system may varyconsiderably in its specific implementation, while still beingencompassed by the invention disclosed herein. As noted above,particular terminology used when describing certain features or aspectsof the invention should not be taken to imply that the terminology isbeing redefined herein to be restricted to any specific characteristics,features, or aspects of the invention with which that terminology isassociated. In general, the terms used in the following claims shouldnot be construed to limit the invention to the specific examplesdisclosed in the specification, unless the above Detailed Descriptionsection explicitly defines such terms. Accordingly, the actual scope ofthe invention encompasses not only the disclosed examples, but also allequivalent ways of practicing or implementing the invention under theclaims.

To reduce the number of claims, certain aspects of the invention arepresented below in certain claim forms, but the applicant contemplatesother aspects of the invention in any number of claim forms. Any claimsintended to be treated under 35 U.S.C. § 112(f) will begin with thewords “means for,” but use of the term “for” in any other context is notintended to invoke treatment under 35 U.S.C. § 112(f). Accordingly, theapplicant reserves the right to pursue additional claims after filingthis application, in either this application or in a continuingapplication.

While the invention has been described with respect to a limited numberof embodiments, those skilled in the art, having benefit of thisdisclosure, will appreciate that other embodiments can be devised whichdo not depart from the scope of the invention as disclosed herein.Accordingly, the scope of the invention should be limited only by theattached claims.

What is claimed is:
 1. A computer implemented method comprising:obtaining a definition of a visualization in a dashboard; extracting,from the definition, a dataset, a color encoding, and a visualizationtype; obtaining a preset data matching the visualization type;extracting, from the preset data, a visualization type code defining arendering process to render the visualization type; rendering data fromthe dataset into the visualization according to the visualization typecode, and the color encoding; detecting an edge dragging event of aselected edge in the dashboard, the edge dragging event comprisingdragging the selected edge along an axis perpendicular to the edge;identifying a parallel edge to the selected edge, the parallel edgewithin a threshold distance to the selected edge along the axis; settingthe edge dragging event to make the selected edge be collinear with theparallel edge based on the parallel edge being within the thresholddistance to the selected edge; stopping the edge dragging event at astop location to generate an updated dashboard; and presenting theupdated dashboard.
 2. The computer implemented method of claim 1,further comprising: detecting that a drop zone location for a selectedvisualization to be on a cell of a neighboring visualization of the atleast one neighboring visualization; partitioning the cell into aplurality of quadrants; detecting a quadrant of the plurality ofquadrants having the drop zone location; positioning the selectedvisualization over a first half of the cell, the first half defined bythe quadrant; and resizing the neighboring visualization to be over asecond half of the cell.
 3. The computer implemented method of claim 1,further comprising: detecting an initial drop zone location of aselected visualization being located on a cell of a neighboringvisualization of the at least one neighboring visualization;partitioning the cell into a plurality of quadrants; detecting a firstquadrant of the plurality of quadrants having the initial drop zonelocation; and generating a preview of the selected visualization on thecell at the first quadrant, wherein generating the preview comprises:positioning a placeholder over a first half of the cell, the first halfdefined by the first quadrant, resizing the neighboring visualization tobe over a second half of the cell to obtain a first resized neighboringvisualization, and displaying the placeholder and the first resizedneighboring visualization on the cell in the dashboard.
 4. The computerimplemented method of claim 1, further comprising: detecting a hoverevent of a selected visualization at a location, and responsive to thehover event, displaying a placeholder of the selected visualization atthe location.
 5. The computer implemented method of claim 1, furthercomprising: detecting that a drop zone location for a selectedvisualization is on an edge between at least two neighboringvisualizations; resizing each of the at least two neighboringvisualizations based on the drop zone location to create a cell for theselected visualization; and adding the selected visualization to thecell.
 6. The computer implemented method of claim 1, further comprising:detecting a drop zone location of a selected visualization within thedashboard; identifying at least one neighboring visualization to thedrop zone location, wherein the at least one neighboring visualizationshares an edge with the drop zone location; sizing the selectedvisualization for the drop zone location; resizing the at least oneneighboring visualization based on the selected visualization beingadded to the drop zone location; and adding the selected visualizationto the drop zone location to further generate the updated dashboard. 7.The computer implemented method of claim 1, further comprising:responsive to the edge dragging event, determining a minimum sizethreshold of a target visualization that is adjacent to the selectededge, and setting the stop location such that a size of the targetvisualization complies with the minimum size threshold.
 8. The computerimplemented method of claim 1, wherein the at least one neighboringvisualization spans a plurality of rows.
 9. The computer implementedmethod of claim 1, further comprising: determining each adjacentvisualization to a selected visualization, each adjacent visualizationbeing adjacent to a selected visualization prior to a move to a dropzone location of the selected visualization; and increasing a size ofone or more of the adjacent visualizations to fill a space created bythe selected visualization with the move.
 10. The computer implementedmethod of claim 1, further comprising: saving, with the dashboard, aplurality of locations of a plurality of visualizations to create asaved dashboard, wherein the saved dashboard omits a plurality ofborders; loading the saved dashboard at a runtime; and generating theplurality of borders between the plurality of visualizations at theruntime.
 11. The computer implemented method of claim 1, furthercomprising: generating a plurality of borders between a plurality ofvisualizations by: starting at a first position of the dashboard,extending a border between a first subset of the plurality ofvisualizations until the border intersects a visualization.
 12. Thecomputer implemented method of claim 1, further comprising: generating aplurality of borders between a plurality of visualizations by: startingat a first position of the dashboard, extending a border between a firstsubset of the plurality of visualizations until the border intersects acorner between four visualizations, and breaking the border at thecorner.
 13. The computer implemented method of claim 1, furthercomprising: extracting, from the definition, a label set and a locationidentifier, wherein the rendering comprises adding the visualizationtype and the label set to a new cell at a location within the new celldefined by the location identifier, the new cell defined by the locationidentifier.
 14. A computer system comprising: a computer processor; andinstructions, stored in memory, for causing the computer processor toperform operations, the operations comprising: obtaining a definition ofa visualization in a dashboard, extracting, from the definition, adataset, a color encoding, and a visualization type; obtaining a presetdata matching the visualization type, extracting, from the preset data,a visualization type code defining a rendering process to render thevisualization type, rendering data from the dataset into thevisualization according to the visualization type code, and the colorencoding, detecting an edge dragging event of a selected edge in thedashboard, the edge dragging event comprising dragging the selected edgealong an axis perpendicular to the edge, identifying a parallel edge tothe selected edge, the parallel edge within a threshold distance to theselected edge along the axis, setting the edge dragging event to makethe selected edge be collinear with the parallel edge based on theparallel edge being within the threshold distance to the selected edge,stopping the edge dragging event at a stop location to generate anupdated dashboard, and presenting the updated dashboard.
 15. Thecomputer system of claim 14, the operations further comprising:detecting a hover event of a selected visualization at a location, andresponsive to the hover event, displaying a placeholder of the selectedvisualization at the location.
 16. The computer system of claim 14, theoperations further comprising: responsive to the edge dragging event,determining a minimum size threshold of a target visualization that isadjacent to the selected edge, and setting the stop location such that asize of the target visualization complies with the minimum sizethreshold.
 17. The computer system of claim 14, the operations furthercomprising: extracting, from the definition, a label set and a locationidentifier, wherein the rendering comprises adding the visualizationtype and the label set to a new cell at a location within the new celldefined by the location identifier, the new cell defined by the locationidentifier.
 18. A non-transitory computer readable medium comprisingcomputer readable program code for causing a computer system to performoperations, the operations comprising: obtaining a definition of avisualization in a dashboard; extracting, from the definition, adataset, a color encoding, and a visualization type; obtaining a presetdata matching the visualization type; extracting, from the preset data,a visualization type code defining a rendering process to render thevisualization type; rendering data from the dataset into thevisualization according to the visualization type code, and the colorencoding; detecting an edge dragging event of a selected edge in thedashboard, the edge dragging event comprising dragging the selected edgealong an axis perpendicular to the edge; identifying a parallel edge tothe selected edge, the parallel edge within a threshold distance to theselected edge along the axis; setting the edge dragging event to makethe selected edge be collinear with the parallel edge based on theparallel edge being within the threshold distance to the selected edge;stopping the edge dragging event at a stop location to generate anupdated dashboard; and presenting the updated dashboard.
 19. Thenon-transitory computer readable medium of claim 18, the operationsfurther comprising: responsive to the edge dragging event, determining aminimum size threshold of a target visualization that is adjacent to theselected edge, and setting the stop location such that a size of thetarget visualization complies with the minimum size threshold.